/*
 * Mintayn Forum / wpForo integration
 * Scope: .mintayn-forum-page and #wpforo-wrap only, so Gallery and Card Pages stay untouched.
 */

.mintayn-forum-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(53, 199, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 88% 14%, rgba(244, 199, 106, 0.10), transparent 30rem),
    linear-gradient(180deg, rgba(5, 8, 15, 0.48), rgba(3, 5, 10, 0.16));
}

.mintayn-forum-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(244, 199, 106, 0.05), transparent),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.035), transparent 42rem);
  opacity: 0.82;
}

.mintayn-forum-hero,
.mintayn-forum-section {
  position: relative;
  z-index: 1;
}

.mintayn-forum-hero {
  padding: clamp(54px, 8vw, 112px) 0 clamp(24px, 4vw, 46px);
  border-bottom: 1px solid rgba(244, 199, 106, 0.14);
}

.mintayn-forum-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 72px);
}

.mintayn-forum-hero__copy {
  max-width: 820px;
}

.mintayn-forum-kicker {
  margin-bottom: 12px;
}

.mintayn-forum-title {
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 7.8rem);
  letter-spacing: -0.075em;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

.mintayn-forum-subtitle {
  max-width: 740px;
  margin: 0;
  color: var(--mintayn-text-muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.mintayn-forum-hero__sigil {
  width: clamp(120px, 18vw, 220px);
  opacity: 0.42;
  filter:
    drop-shadow(0 0 36px rgba(244, 199, 106, 0.18))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  transform: rotate(-8deg);
}

.mintayn-forum-section {
  padding: clamp(30px, 5vw, 56px) 0 clamp(72px, 8vw, 128px);
}

.mintayn-forum-frame {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(244, 199, 106, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 20, 34, 0.90), rgba(7, 11, 21, 0.88)),
    radial-gradient(circle at 20% 0%, rgba(53, 199, 255, 0.08), transparent 26rem),
    radial-gradient(circle at 80% 10%, rgba(244, 199, 106, 0.07), transparent 26rem);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mintayn-forum-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 18%, transparent 72%, rgba(244,199,106,0.08));
  mask-image: linear-gradient(#000, transparent 72%);
}

.mintayn-forum-content,
.mintayn-forum-entry {
  position: relative;
  z-index: 1;
}

/* wpForo: remove the embedded WordPress/blog sidebar and give the forum the full frame width. */
.mintayn-forum-page #wpforo-wrap .wpforo-right-sidebar,
.mintayn-forum-page #wpforo-wrap .wpforo-sidebar,
.mintayn-forum-page #wpforo-wrap .wpf-sidebar,
.mintayn-forum-page #wpforo-wrap .wpf-right-sidebar,
.mintayn-forum-page #wpforo-wrap .wpforo-widget-wrap,
.mintayn-forum-page #wpforo-wrap .wpf-widget-wrap,
.mintayn-forum-page #wpforo-wrap aside,
.mintayn-forum-page #wpforo-wrap .widget-area {
  display: none !important;
}

.mintayn-forum-page #wpforo-wrap .wpforo-main,
.mintayn-forum-page #wpforo-wrap .wpf-main,
.mintayn-forum-page #wpforo-wrap .wpforo-content,
.mintayn-forum-page #wpforo-wrap .wpf-content,
.mintayn-forum-page #wpforo-wrap .wpforo-left-sidebar + .wpforo-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* wpForo base dark integration */
.mintayn-forum-page #wpforo-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: rgba(244, 234, 208, 0.86) !important;
  font-family: var(--mintayn-font-main) !important;
  font-size: 15px;
}

.mintayn-forum-page #wpforo-wrap *,
.mintayn-forum-page #wpforo-wrap *::before,
.mintayn-forum-page #wpforo-wrap *::after {
  box-sizing: border-box;
}

.mintayn-forum-page #wpforo-wrap :where(h1, h2, h3, h4, h5, h6),
.mintayn-forum-page #wpforo-wrap .wpforo-title,
.mintayn-forum-page #wpforo-wrap .wpf-title,
.mintayn-forum-page #wpforo-wrap .wpf-cat-title,
.mintayn-forum-page #wpforo-wrap .wpf-forum-title {
  color: var(--mintayn-ivory-silver) !important;
  font-family: var(--mintayn-font-display) !important;
  letter-spacing: -0.025em;
}

.mintayn-forum-page #wpforo-wrap a {
  color: var(--mintayn-gold-bright) !important;
  text-decoration: none;
}

.mintayn-forum-page #wpforo-wrap a:hover {
  color: var(--mintayn-ivory-silver) !important;
  text-shadow: 0 0 18px rgba(244, 199, 106, 0.20);
}

/* Panels, rows, category bars and post bodies */
.mintayn-forum-page #wpforo-wrap :where(.wpforo-category, .wpforo-forum, .wpforo-topic, .wpforo-post, .wpforo-profile-wrap, .wpforo-member-wrap, .wpf-cat-panel, .wpf-forum-item, .wpf-thread-box, .wpf-post, .wpf-table, .wpf-row, .wpf-card, .wpf-content-foot),
.mintayn-forum-page #wpforo-wrap :where(table, tbody, tr, td, th) {
  background-color: rgba(10, 15, 27, 0.84) !important;
  border-color: rgba(244, 199, 106, 0.16) !important;
  color: rgba(244, 234, 208, 0.84) !important;
}

.mintayn-forum-page #wpforo-wrap :where(.wpf-head-bar, .wpf-table-head, .wpforo-cat-panel, .wpf-cat-title, .wpf-thread-head, .wpf-post-head, .wpf-action-bar, .wpforo-poweredby) {
  background:
    linear-gradient(135deg, rgba(22, 28, 44, 0.98), rgba(7, 11, 21, 0.96)) !important;
  border-color: rgba(244, 199, 106, 0.22) !important;
  color: rgba(248, 231, 178, 0.94) !important;
}

.mintayn-forum-page #wpforo-wrap :where(.wpf-forum-icon, .wpf-topic-icon, .wpfcl-0, .wpfcl-1, .wpfcl-2, .wpfcl-3, .wpfcl-4, .wpfcl-5, .wpfcl-6, .wpfcl-7, .wpfcl-8) {
  color: var(--mintayn-gold-bright) !important;
}

/* Notices, breadcrumbs and admin-only wpForo frontend controls */
.mintayn-forum-page #wpforo-wrap :where(.wpforo-alert, .wpforo-info, .wpf-alert, .wpf-notice, .wpforo-breadcrumb, .wpf-breadcrumb, .wpf-admincp, .wpf-admin-control, .wpf-tools) {
  background: rgba(14, 19, 31, 0.88) !important;
  border-color: rgba(244, 199, 106, 0.20) !important;
  color: rgba(244, 234, 208, 0.78) !important;
}

/* Inputs and search */
.mintayn-forum-page #wpforo-wrap :where(input, textarea, select) {
  background: rgba(3, 7, 14, 0.88) !important;
  border: 1px solid rgba(244, 199, 106, 0.22) !important;
  border-radius: 12px !important;
  color: var(--mintayn-text-main) !important;
  outline: none !important;
}

.mintayn-forum-page #wpforo-wrap :where(input:focus, textarea:focus, select:focus) {
  border-color: rgba(244, 199, 106, 0.48) !important;
  box-shadow: 0 0 0 3px rgba(244, 199, 106, 0.10) !important;
}

/* Buttons */
.mintayn-forum-page #wpforo-wrap :where(button, input[type="button"], input[type="submit"], .wpf-button, .wpforo-button, .wpf-action, .wpf-tools button) {
  min-height: 36px;
  border: 1px solid rgba(244, 199, 106, 0.28) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f4c76a, #9a6a29) !important;
  color: #080b12 !important;
  font-family: var(--mintayn-font-brand) !important;
  font-weight: 800 !important;
  letter-spacing: 0.065em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32) !important;
}

.mintayn-forum-page #wpforo-wrap :where(button:hover, input[type="button"]:hover, input[type="submit"]:hover, .wpf-button:hover, .wpforo-button:hover) {
  filter: brightness(1.08);
}

/* Forum stats/footer area */
.mintayn-forum-page #wpforo-wrap :where(.wpforo-stat-body, .wpforo-stat, .wpf-stat, .wpforo-forum-footer, .wpf-footer-box) {
  background: rgba(5, 8, 15, 0.78) !important;
  border-color: rgba(244, 199, 106, 0.14) !important;
  color: rgba(244, 234, 208, 0.70) !important;
}

/* Make stubborn bright wpForo areas dark without affecting the rest of the site. */
.mintayn-forum-page #wpforo-wrap [style*="background:#fff"],
.mintayn-forum-page #wpforo-wrap [style*="background: #fff"],
.mintayn-forum-page #wpforo-wrap [style*="background-color:#fff"],
.mintayn-forum-page #wpforo-wrap [style*="background-color: #fff"],
.mintayn-forum-page #wpforo-wrap [style*="background:white"],
.mintayn-forum-page #wpforo-wrap [style*="background: white"] {
  background: rgba(10, 15, 27, 0.90) !important;
  color: rgba(244, 234, 208, 0.86) !important;
}

.mintayn-forum-page #wpforo-wrap [style*="color:#000"],
.mintayn-forum-page #wpforo-wrap [style*="color: #000"],
.mintayn-forum-page #wpforo-wrap [style*="color:black"],
.mintayn-forum-page #wpforo-wrap [style*="color: black"] {
  color: rgba(244, 234, 208, 0.86) !important;
}

@media (max-width: 860px) {
  .mintayn-forum-hero__inner {
    align-items: flex-start;
  }

  .mintayn-forum-hero__sigil {
    display: none;
  }

  .mintayn-forum-frame {
    padding: 14px;
    border-radius: 22px;
  }

  .mintayn-forum-page #wpforo-wrap {
    font-size: 14px;
  }
}

/* v1.9: stronger wpForo dark integration for stubborn default plugin areas visible in wpForo 3.x */
.mintayn-forum-page #wpforo-wrap :where(#wpforo-menu, .wpforo-menu, .wpf-menu, .wpf-menu-wrap, .wpf-main-menu, .wpforo-main-menu, .wpf-navi, .wpforo-navigation) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 52px;
  padding: 0 14px !important;
  border: 1px solid rgba(244, 199, 106, 0.16) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(14, 19, 31, 0.96), rgba(7, 11, 21, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  overflow: hidden;
}

.mintayn-forum-page #wpforo-wrap :where(#wpforo-menu, .wpforo-menu, .wpf-menu, .wpf-menu-wrap, .wpf-main-menu, .wpforo-main-menu, .wpf-navi, .wpforo-navigation) :where(ul, li) {
  background: transparent !important;
  border-color: rgba(244, 199, 106, 0.10) !important;
  color: rgba(244, 234, 208, 0.78) !important;
  box-shadow: none !important;
}

.mintayn-forum-page #wpforo-wrap :where(#wpforo-menu, .wpforo-menu, .wpf-menu, .wpf-menu-wrap, .wpf-main-menu, .wpforo-main-menu, .wpf-navi, .wpforo-navigation) :where(a, span) {
  background: transparent !important;
  color: rgba(244, 199, 106, 0.86) !important;
  font-family: var(--mintayn-font-brand) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.76rem !important;
}

.mintayn-forum-page #wpforo-wrap :where(#wpforo-menu, .wpforo-menu, .wpf-menu, .wpf-menu-wrap, .wpf-main-menu, .wpforo-main-menu, .wpf-navi, .wpforo-navigation) :where(a:hover, .current-menu-item > a, .active > a) {
  color: #fff0bd !important;
  background: rgba(244, 199, 106, 0.08) !important;
}

/* Search/bell icons in the wpForo menu bar */
.mintayn-forum-page #wpforo-wrap :where(.wpf-search, .wpforo-search, .wpf-search-form, .wpf-notifications, .wpf-notification, .wpforo-notifications, .wpf-member-menu, .wpf-user-menu) {
  background: transparent !important;
  color: rgba(244, 199, 106, 0.88) !important;
  border-color: rgba(244, 199, 106, 0.14) !important;
}

/* More aggressive dark styling for admin-only warnings and wpForo system boxes. */
.mintayn-forum-page #wpforo-wrap :where(
  div[class*="notice"], div[class*="Notice"], div[class*="alert"], div[class*="Alert"],
  div[class*="message"], div[class*="Message"], div[class*="warning"], div[class*="Warning"],
  div[class*="antispam"], div[class*="Antispam"], div[class*="spam"], div[class*="Spam"],
  div[class*="admincp"], div[class*="admin-control"], div[class*="control-panel"], div[class*="system"],
  section[class*="notice"], section[class*="admin"]
) {
  background:
    linear-gradient(180deg, rgba(17, 22, 35, 0.96), rgba(9, 13, 24, 0.96)) !important;
  border: 1px solid rgba(244, 199, 106, 0.18) !important;
  color: rgba(244, 234, 208, 0.80) !important;
  box-shadow: none !important;
}

.mintayn-forum-page #wpforo-wrap :where(
  div[class*="notice"], div[class*="Notice"], div[class*="alert"], div[class*="Alert"],
  div[class*="message"], div[class*="Message"], div[class*="warning"], div[class*="Warning"],
  div[class*="antispam"], div[class*="Antispam"], div[class*="spam"], div[class*="Spam"],
  div[class*="admincp"], div[class*="admin-control"], div[class*="control-panel"], div[class*="system"]
) :where(p, span, div, small, em, strong, b) {
  color: rgba(244, 234, 208, 0.80) !important;
}

/* wpForo sometimes renders admin control panes as plain tables/divs with light backgrounds. */
.mintayn-forum-page #wpforo-wrap :where([id*="admin"], [class*="admin"]):not(a):not(span):not(i):not(svg) {
  border-color: rgba(244, 199, 106, 0.18) !important;
  color: rgba(244, 234, 208, 0.78) !important;
}

.mintayn-forum-page #wpforo-wrap :where(.wpf-admincp, .wpf-admin-control, .wpf-acp, .wpforo-admin-bar, .wpforo-acp, .wpforo-admin-note) {
  background:
    linear-gradient(180deg, rgba(17, 22, 35, 0.96), rgba(9, 13, 24, 0.96)) !important;
  border: 1px solid rgba(244, 199, 106, 0.18) !important;
  color: rgba(244, 234, 208, 0.80) !important;
}

/* Catch pure white/near-white inline and plugin stylesheet backgrounds beyond #fff. */
.mintayn-forum-page #wpforo-wrap [style*="background:#f"],
.mintayn-forum-page #wpforo-wrap [style*="background: #f"],
.mintayn-forum-page #wpforo-wrap [style*="background-color:#f"],
.mintayn-forum-page #wpforo-wrap [style*="background-color: #f"],
.mintayn-forum-page #wpforo-wrap [style*="background-color: rgb(255"],
.mintayn-forum-page #wpforo-wrap [style*="background: rgb(255"] {
  background: rgba(10, 15, 27, 0.92) !important;
  color: rgba(244, 234, 208, 0.84) !important;
}

/* Make the forum frame slightly less huge now that the forum itself is dark. */
.mintayn-forum-frame {
  padding: clamp(14px, 2.35vw, 28px);
}

@media (max-width: 720px) {
  .mintayn-forum-page #wpforo-wrap :where(#wpforo-menu, .wpforo-menu, .wpf-menu, .wpf-menu-wrap, .wpf-main-menu, .wpforo-main-menu, .wpf-navi, .wpforo-navigation) {
    border-radius: 14px !important;
    padding: 8px !important;
  }
}


/* v2.0: clean frontend mode for wpForo admin-only boxes.
   These boxes are useful in the wpForo backend, but visually break the public Mintayn forum page. */
.mintayn-forum-page #wpforo-wrap .mintayn-wpf-admin-noise {
  display: none !important;
}

/* Stubborn wpForo notices and admin panels: higher-specificity fallback. */
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpforo-msg,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpforo-note,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpforo-warning,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpforo-error,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpforo-success,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpf-msg,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpf-note,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpf-warning,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpf-error,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpf-success,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpf-info,
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap .wpforo-info {
  border: 1px solid rgba(244, 199, 106, 0.18) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(17, 22, 35, 0.96), rgba(9, 13, 24, 0.96)) !important;
  color: rgba(244, 234, 208, 0.82) !important;
}

/* Reduce the remaining plugin-white effect in admin controls if JS is blocked. */
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap table[class*="admin"],
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap div[class*="admin"],
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap div[class*="system"],
body.mintayn-shell-active .mintayn-forum-page #wpforo-wrap div[class*="control"] {
  background-color: rgba(10, 15, 27, 0.92) !important;
  border-color: rgba(244, 199, 106, 0.16) !important;
  color: rgba(244, 234, 208, 0.80) !important;
}

/* Top forum menu polish: prevent the pill bar from looking like a separate plugin island. */
.mintayn-forum-page #wpforo-wrap :where(#wpforo-menu, .wpforo-menu, .wpf-menu, .wpf-menu-wrap, .wpf-main-menu, .wpforo-main-menu, .wpf-navi, .wpforo-navigation) {
  margin-bottom: 18px !important;
}

.mintayn-forum-page #wpforo-wrap :where(#wpforo-menu, .wpforo-menu, .wpf-menu, .wpf-menu-wrap, .wpf-main-menu, .wpforo-main-menu, .wpf-navi, .wpforo-navigation) :where(li, a) {
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Breadcrumb/icon strip should be subtle, not another white row. */
.mintayn-forum-page #wpforo-wrap :where(.wpforo-breadcrumb, .wpf-breadcrumb, .wpf-breadcrumbs) {
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* Make the empty forum table area look intentional. */
.mintayn-forum-page #wpforo-wrap :where(.wpf-forums, .wpforo-forums, .wpf-table, .wpforo-table) {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Share buttons and minor icon rows: softer integration. */
.mintayn-forum-page #wpforo-wrap :where(.wpforo-share, .wpf-share, .wpforo-social, .wpf-social) :where(a, button) {
  border: 1px solid rgba(244, 199, 106, 0.26) !important;
  background: rgba(5, 8, 15, 0.62) !important;
  color: rgba(244, 199, 106, 0.88) !important;
}
