/* =========================================
   Forum Coming Soon (2026-05-01)
   =========================================
   Full-screen takeover for /forum and /forum/* paths until launch.
   Renders via template-parts/forum-coming-soon.php (intercepted at
   template_redirect, before wpForo). Background = 8 blurred "thread
   card" mockups with avatar + lines + reply count, gently floating.
   Inner = eyebrow + big title + lead + back-to-home link.
   ========================================= */
.bm-forum-soon {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(232, 65, 90, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0a0e27 0%, #1a1a2e 40%, #2d1a3a 100%);
  color: #FFFFFF;
  padding: clamp(60px, 10vh, 120px) 24px;
}
.bm-forum-soon__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}
.bm-forum-soon__card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: clamp(180px, 18vw, 240px);
  transform: rotate(var(--rot)) translate(0, 0);
  opacity: 0;
  animation: bm-forum-card-float 6s ease-in-out infinite, bm-forum-card-fade 1.2s ease-out forwards;
  animation-delay: var(--delay), var(--delay);
}
@keyframes bm-forum-card-fade {
  to { opacity: 0.55; }
}
@keyframes bm-forum-card-float {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(var(--rot)) translateY(-12px); }
}
.bm-forum-soon__card-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 65, 90, 0.6) 0%, rgba(139, 92, 246, 0.6) 100%);
}
.bm-forum-soon__card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.bm-forum-soon__card-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.bm-forum-soon__card-line--title {
  width: 80%;
  background: rgba(255, 255, 255, 0.28);
}
.bm-forum-soon__card-line--meta {
  width: 50%;
  height: 5px;
}
.bm-forum-soon__card-replies {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  font-family: var(--bm-font-sans, system-ui);
}
@media (max-width: 768px) {
  .bm-forum-soon__card { display: none; }
  .bm-forum-soon__card:nth-child(odd) { display: flex; }
}

.bm-forum-soon__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}
.bm-forum-soon__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}
.bm-forum-soon__title {
  font-size: clamp(2.5rem, 7vw + 0.5rem, 5rem);
  font-weight: 800;
  /* line-height 1.2 + padding-bottom give the 'g' descender breathing
     room — `background-clip: text` clipped its bottom curve at 1.05. */
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0 0 32px;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFB0BD 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.bm-forum-soon__lead {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 44px;
  max-width: 480px;
}
.bm-forum-soon__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.bm-forum-soon__cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .bm-forum-soon__card { animation: none; opacity: 0.55; }
}

/* BeMatrx Forum — lean wpForo overrides (v3 minimize)
   ----------------------------------------------------------------------
   Scope is intentionally narrow:
     - Brand pink on the primary action buttons (Konu Ekle, secondary)
     - Layout fixes for the wpForo Forum Information stat block
     - Hide noise that doesn't belong in our shipped product
       (Powered-by link, empty notification badge)
     - Theme typography cascade into wpForo
     - Section padding override so wpForo doesn't double up on bm-section

   This file does NOT touch theme chrome (header.php, footer.php) or
   apply an opinionated dark theme — that's a separate sprint
   (light/dark toggle). wpForo's default light theme stays intact aside
   from the brand button identity.

   Loaded only on /forum/* via bm_enqueue_forum_styles() in functions.php.
   ====================================================================== */

:root {
  --bm-pink: #E8415A;
  --bm-pink-hover: #FF5C75;
}

/* Trim the extra .bm-section vertical padding on /forum/. wpForo has
   its own internal padding; the theme's --bm-space-8/9 values were
   doubling the gap above and below the forum body. */
.bm-forum-main.bm-section {
  padding-block: 32px;
}

/* Force wpForo to inherit the theme typography (Inter). Without this
   wpForo enqueues a system font stack that visibly diverges from the
   rest of the site. */
#wpforo,
#wpforo *,
.wpforo-main,
.wpforo-content {
  font-family: inherit !important;
}

/* ─── Brand buttons ──────────────────────────────────────────────── */
.wpf-button,
.add_wpftopic,
#wpforo .wpf-button {
  background: var(--bm-pink) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.wpf-button:hover,
.add_wpftopic:hover,
#wpforo .wpf-button:hover {
  background: var(--bm-pink-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.wpf-button-secondary,
#wpforo .wpf-button-secondary {
  background: transparent !important;
  color: var(--bm-pink) !important;
  border: 1px solid var(--bm-pink) !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer;
  transition: background .2s ease;
}

.wpf-button-secondary:hover {
  background: rgba(232, 65, 90, 0.1) !important;
}

/* Pink focus ring on inputs — small brand touch on top of wpForo defaults */
#wpforo input:focus,
#wpforo textarea:focus,
#wpforo select:focus,
.wpf-search-field:focus {
  border-color: var(--bm-pink) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(232, 65, 90, 0.2) !important;
}

/* ─── Forum Information stat layout ──────────────────────────────── */
/* Polish v2 used CSS Grid with auto-fill, but the first stat box kept
   stretching past the container because Grid items don't shrink below
   min-content by default. Flex-wrap with content-sized boxes self-balances
   and lets .wpf-newest-member break onto its own full-width row instead
   of overlapping a stat — which was the original bug Sezgin reported. */
#wpforo-stat-body {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-around !important;
  align-items: flex-start !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wpf-footer-box {
  flex: 1 1 100px !important;
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 12px !important;
}

.wpf-footer-box svg,
.wpf-footer-box img,
.wpf-footer-box i {
  max-width: 32px !important;
  flex-shrink: 0 !important;
}

.wpf-newest-member {
  flex-basis: 100% !important;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  text-align: center;
}

.wpf-newest-member a {
  color: var(--bm-pink) !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* ─── Hide the empty notification dot ────────────────────────────── */
/* When the unread counter is empty / zero, the badge reads as a
   permanent unread indicator that the user can never resolve. */
.wpforo-menu-notification-counter:empty,
.wpforo-menu-notification-counter[data-count="0"],
.wpf-alerts:empty {
  display: none !important;
}

/* ─── Hide "Powered by wpForo version 3.0.8" ─────────────────────── */
#wpforo-poweredby {
  display: none !important;
}

/* ─── reCAPTCHA admin notice — subtle pink info bar ──────────────── */
.wpforo-rcn-wrap {
  background: rgba(232, 65, 90, 0.06) !important;
  border: 1px solid rgba(232, 65, 90, 0.22) !important;
  border-left: 3px solid var(--bm-pink) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
}

.wpforo-rcn-wrap a:hover {
  color: var(--bm-pink) !important;
}

/* ─── Mobile responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .bm-forum-main.bm-section {
    padding-block: 20px;
  }

  .wpf-button,
  .wpf-button-secondary,
  .add_wpftopic {
    width: 100%;
    text-align: center;
  }

  /* Stat boxes 2-up on tablet so they don't squeeze too narrow */
  .wpf-footer-box {
    flex: 1 1 calc(50% - 8px) !important;
  }
}

@media (max-width: 480px) {
  /* Single column on phone */
  .wpf-footer-box {
    flex: 1 1 100% !important;
  }
}

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wpf-button,
  .wpf-button-secondary,
  .add_wpftopic {
    transition: none !important;
  }

  .wpf-button:hover,
  .add_wpftopic:hover {
    transform: none !important;
  }
}
