/*
Theme Name: The Next Bar
Theme URI: https://nextbar.online
Description: Custom child theme for The Next Bar — built on GeneratePress. A collaboration between Mike Smith (Trader IQ) and Cameron Malik.
Author: Trader IQ Pty Ltd
Author URI: https://tradingtoolbox.com.au
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: next-bar
*/

/* ══════════════════════════════════════════
   THE NEXT BAR DESIGN SYSTEM
   Chart Room palette — dark green / orange
   ══════════════════════════════════════════ */

/* ── HIDE GENERATEPRESS DEFAULTS ── */
.site-header { display: none !important; }
.entry-title { display: none !important; }
.main-navigation { display: none !important; }
.site-footer { display: none !important; }
.site-info { display: none !important; }
.entry-header { display: none; }
#page.site { max-width: none; margin: 0; padding: 0; }
.site-content { padding: 0 !important; }
.separate-containers .inside-article { padding: 0; }
.container.grid-container { max-width: none; padding: 0; }
body .grid-container { max-width: none; padding: 0; }
.entry-content { margin-top: 0; }

:root {
  --nb-bg: #0C1912;
  --nb-panel: #12241A;
  --nb-panel-deep: #0A140E;
  --nb-line: #22392C;
  --nb-text: #EAF4EE;
  --nb-muted: #93AC9E;
  --nb-green: #1EC97C;
  --nb-green-dim: #17A466;
  --nb-green-deep: #0B5C39;
  --nb-orange: #FE8D00;
  --nb-discord: #5865F2;
  --nb-font: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--nb-bg);
  color: var(--nb-text);
  font-family: var(--nb-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.nb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--nb-font); color: var(--nb-text); }
.nb-h1 { font-weight: 800; font-size: 54px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; }
.nb-h1 .accent { color: var(--nb-orange); }
.nb-h2 { font-weight: 800; font-size: 34px; letter-spacing: -.015em; margin: 0; }
.nb-kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--nb-green); margin-bottom: 14px; }
.nb-tag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--nb-orange); }
.nb-meta { font-size: 12.5px; color: var(--nb-muted); }

/* ── BUTTONS ── */
.nb-btn {
  display: inline-block; background: var(--nb-orange); color: #131007 !important;
  font-weight: 700; font-size: 15px; padding: 12px 26px; border-radius: 8px;
  border: none; cursor: pointer; text-align: center; font-family: var(--nb-font);
  transition: background .15s;
}
.nb-btn:hover { background: #FFA02E; color: #131007; }
.nb-btn-ghost {
  display: inline-block; border: 1.5px solid var(--nb-green-dim); color: var(--nb-green) !important;
  font-weight: 600; font-size: 15px; padding: 11px 26px; border-radius: 8px;
  background: transparent; cursor: pointer; text-align: center; font-family: var(--nb-font);
  transition: background .15s;
}
.nb-btn-ghost:hover { background: rgba(23,164,102,.12); }
.nb-btn-discord {
  display: inline-block; background: var(--nb-discord); color: #fff !important;
  font-weight: 700; font-size: 15px; padding: 12px 26px; border-radius: 8px;
}
.nb-btn-discord:hover { background: #6B77F5; }

/* ── TICKER ── */
.nb-ticker { border-bottom: 1px solid var(--nb-line); background: var(--nb-panel-deep); }
.nb-ticker .tradingview-widget-copyright { display: none; }

/* ── NAVBAR ── */
.nb-navbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(12,25,18,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nb-line);
}
.nb-navbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; height: 118px;
}
.nb-logo img { height: 88px; width: auto; display: block; }
.nb-nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nb-nav-links > li { margin: 0; }
.nb-nav-links a { font-size: 15px; font-weight: 500; color: var(--nb-muted); }
.nb-nav-links a:hover { color: var(--nb-text); }
.nb-nav-links a.here { color: var(--nb-green); font-weight: 700; }
.nb-nav-cta { margin-left: 6px; }
.nb-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nb-hamburger span { display: block; width: 24px; height: 2px; background: var(--nb-text); margin: 5px 0; transition: .2s; }

/* ── PAGE HEAD ── */
.nb-pagehead { padding: 64px 0 40px; border-bottom: 1px solid var(--nb-line); }
.nb-pagehead h1 { font-weight: 800; font-size: 44px; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.nb-pagehead p { color: var(--nb-muted); font-size: 17px; max-width: 44em; margin: 14px 0 0; }

.nb-section { padding: 70px 0; }
.nb-sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.nb-sec-head a { color: var(--nb-green); font-weight: 700; font-size: 15px; }

/* ── HERO (homepage) ── */
.nb-hero { padding: 84px 0 80px; position: relative; overflow: hidden; }
.nb-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 380px at 80% 25%, rgba(23,164,102,.15), transparent 70%);
  pointer-events: none;
}
.nb-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; position: relative; }
.nb-lede { font-size: 18px; color: var(--nb-muted); max-width: 33em; margin: 0 0 32px; }
.nb-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.nb-hero-note { font-size: 13.5px; color: var(--nb-muted); }
.nb-hero-note b { color: var(--nb-text); }

/* signature next-bar chart */
.nb-chart { display: flex; align-items: flex-end; gap: 16px; height: 320px; justify-content: center; border-bottom: 2px solid var(--nb-line); padding: 0 10px; }
.nb-bar { width: 52px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #1EC97C, #0F7A4C); }
.nb-bar.b1 { height: 32%; } .nb-bar.b2 { height: 50%; } .nb-bar.b3 { height: 42%; }
.nb-bar.b4 { height: 66%; } .nb-bar.b5 { height: 82%; }
.nb-next {
  width: 52px; height: 95%; border: 2.5px dashed var(--nb-orange); border-bottom: none;
  border-radius: 7px 7px 0 0; position: relative; animation: nbpulse 2.6s ease-in-out infinite;
}
.nb-next span {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nb-orange);
}
@keyframes nbpulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nb-next { animation: none; } }
.nb-chart-cap { font-size: 13px; color: var(--nb-muted); text-align: center; padding-top: 14px; }
.nb-chart-cap b { color: var(--nb-orange); }

/* ── PAGE CARDS (home ×3) ── */
.nb-pages { padding: 0 0 90px; }
.nb-pages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nb-pcard {
  background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.nb-pcard:hover { transform: translateY(-4px); border-color: var(--nb-green-dim); }
.nb-pimg { height: 190px; display: flex; align-items: center; justify-content: center; font-size: 44px; background-size: cover; background-position: center; }
.nb-pbody { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nb-pbody h3 { font-size: 21px; font-weight: 700; margin: 0; }
.nb-pbody p { font-size: 14.5px; color: var(--nb-muted); flex: 1; margin: 0; }
.nb-plink { font-weight: 700; color: var(--nb-orange); font-size: 14.5px; }

/* gradient placeholders */
.nb-g1 { background: linear-gradient(120deg, #0B5C39, #1EC97C); }
.nb-g2 { background: linear-gradient(120deg, #10331F, #17A466); }
.nb-g3 { background: linear-gradient(120deg, #0B5C39 40%, #C77000 170%); }
.nb-g4 { background: linear-gradient(135deg, #134129, #1EC97C); }

/* ── BAND (whatever you trade) ── */
.nb-band { border-top: 1px solid var(--nb-line); border-bottom: 1px solid var(--nb-line); background: var(--nb-panel-deep); padding: 74px 0; }
.nb-band .sub { color: var(--nb-muted); max-width: 46em; margin: 10px 0 40px; font-size: 16.5px; }
.nb-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nb-bcell { background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 14px; padding: 26px 24px; }
.nb-bicon {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(30,201,124,.12);
  border: 1px solid var(--nb-line); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--nb-green); font-size: 19px; font-weight: 800;
}
.nb-bcell h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 6px; }
.nb-bcell p { font-size: 13.5px; color: var(--nb-muted); margin: 0; }

/* ── ARTICLE CARDS ── */
.nb-art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nb-card {
  background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.nb-card:hover { transform: translateY(-3px); border-color: var(--nb-green-dim); }
.nb-thumb { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 38px; background-size: cover; background-position: center; }
.nb-cbody { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nb-card h3 { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 0; }
.nb-card h3 a:hover { color: var(--nb-green); }
.nb-card p { font-size: 14px; color: var(--nb-muted); flex: 1; margin: 0; }

/* filter pills */
.nb-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 40px; }
.nb-pill { border: 1px solid var(--nb-line); border-radius: 99px; padding: 7px 18px; font-size: 13.5px; font-weight: 600; color: var(--nb-muted); }
.nb-pill:hover, .nb-pill.on { background: rgba(30,201,124,.12); border-color: var(--nb-green-dim); color: var(--nb-green); }

/* ── SINGLE ARTICLE ── */
.nb-article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 56px 0 70px; max-width: 1120px; margin: 0 auto; }
.nb-article h1 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 10px; }
.nb-article .feat { height: 300px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 22px 0 32px; background-size: cover; background-position: center; }
.nb-article-body p { margin: 0 0 18px; font-size: 16px; color: #CFE0D6; }
.nb-article-body h2 { font-size: 24px; font-weight: 800; margin: 30px 0 14px; }
.nb-article-body h3 { font-size: 20px; font-weight: 700; margin: 26px 0 12px; }
.nb-article-body ul, .nb-article-body ol { margin: 0 0 18px 22px; color: #CFE0D6; font-size: 16px; }
.nb-article-body li { margin-bottom: 6px; }
.nb-article-body a { color: var(--nb-green); text-decoration: underline; }
.nb-article-body img { max-width: 100%; border-radius: 12px; }
.nb-article-body blockquote {
  border-left: 3px solid var(--nb-orange); padding: 4px 0 4px 20px; margin: 24px 0;
  font-size: 17px; color: var(--nb-text); font-weight: 500;
}

/* discord strip */
.nb-discord-strip {
  margin-top: 44px; background: linear-gradient(135deg, #1A2340, #232E5C);
  border: 1px solid #33407A; border-radius: 16px; padding: 26px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.nb-discord-strip h3 { font-size: 19px; font-weight: 800; margin: 0; }
.nb-discord-strip p { font-size: 14px; color: #B8C2E8; margin: 4px 0 0; }

/* ── SIDEBAR ── */
.nb-sidebar { display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: 140px; }
.nb-widget { background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 14px; padding: 22px; }
.nb-wlabel { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--nb-muted); margin-bottom: 12px; }
.nb-widget h4 { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.nb-widget p { font-size: 13px; color: var(--nb-muted); margin: 0; }
.nb-widget .nb-btn, .nb-widget .nb-btn-ghost { display: block; width: 100%; margin-top: 14px; font-size: 14px; padding: 11px 16px; box-sizing: border-box; }
.nb-mini-thumb { height: 96px; border-radius: 10px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background-size: cover; background-position: center; }
.nb-sess-date { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }

.nb-datebox {
  width: 54px; height: 54px; border-radius: 10px; background: var(--nb-panel-deep);
  border: 1px solid var(--nb-line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nb-datebox b { font-size: 19px; color: var(--nb-green); line-height: 1.1; }
.nb-datebox span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--nb-muted); }

/* ── EVENTS ── */
.nb-ev-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 16px;
  padding: 26px 30px; margin-bottom: 16px; gap: 20px; flex-wrap: wrap;
}
.nb-ev-when { display: flex; gap: 22px; align-items: center; }
.nb-datebox.lg { width: 66px; height: 66px; }
.nb-datebox.lg b { font-size: 23px; }
.nb-ev-row h3 { font-size: 20px; font-weight: 700; margin: 0; }
.nb-ev-row .sub { font-size: 14px; color: var(--nb-muted); }
.nb-ev-row.past .nb-datebox b { color: var(--nb-muted); }

/* ── RESOURCE HUB ── */
.nb-res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nb-res-icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(30,201,124,.12);
  border: 1px solid var(--nb-line); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 24px 0 0 24px;
}
.nb-badge {
  display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 800; padding: 4px 10px; border-radius: 99px; margin-left: 8px; vertical-align: middle;
}
.nb-badge.free { background: rgba(30,201,124,.15); color: var(--nb-green); }
.nb-badge.optin { background: rgba(254,141,0,.15); color: var(--nb-orange); }
.nb-badge.community { background: rgba(88,101,242,.18); color: #98A4F7; }

/* ── TOOL PAGE ── */
.nb-tool-wrap { padding: 40px 0 70px; }
.nb-tool-frame { border: 1px solid var(--nb-line); border-radius: 16px; overflow: hidden; background: var(--nb-panel-deep); }
.nb-tool-frame iframe { display: block; width: 100%; border: none; }
.nb-tool-note { color: var(--nb-muted); font-size: 13.5px; margin-top: 22px; text-align: center; }

/* ── FORMS ── */
.nb-field {
  width: 100%; background: var(--nb-panel-deep); border: 1.5px solid var(--nb-line);
  border-radius: 8px; padding: 12px 14px; font-size: 15px; color: var(--nb-text);
  font-family: var(--nb-font); margin-bottom: 12px; box-sizing: border-box;
}
.nb-field::placeholder { color: #5E7568; }
textarea.nb-field { min-height: 130px; resize: vertical; }
.nb-form-msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14.5px; font-weight: 600; }
.nb-form-msg.ok { background: rgba(30,201,124,.12); border: 1px solid var(--nb-green-dim); color: var(--nb-green); }
.nb-form-msg.err { background: rgba(255,107,87,.1); border: 1px solid #7A3A32; color: #FF8A78; }
.nb-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── OPT-IN LANDING / DOWNLOAD (stripped chrome) ── */
.nb-slim-head { border-bottom: 1px solid var(--nb-line); padding: 18px 0; }
.nb-slim-head img { height: 66px; width: auto; display: block; margin: 0 auto; }
.nb-landing { min-height: 60vh; display: flex; align-items: center; padding: 70px 0; }
.nb-landing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.nb-landing h1 { font-size: 42px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.nb-landing .sub { color: var(--nb-muted); font-size: 17px; margin: 12px 0 0; }
.nb-landing ul { list-style: none; margin: 24px 0; padding: 0; }
.nb-landing li { padding: 7px 0 7px 30px; position: relative; color: var(--nb-muted); font-size: 16px; margin: 0; }
.nb-landing li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 11px; background: var(--nb-green); border-radius: 3px; }
.nb-optin-card { background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 16px; padding: 32px; }
.nb-optin-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.nb-optin-card .sub { font-size: 13.5px; color: var(--nb-muted); margin-bottom: 18px; }
.nb-tiny { font-size: 12px; color: var(--nb-muted); margin-top: 12px; text-align: center; }
.nb-slim-foot { padding: 30px 0; font-size: 12.5px; color: #6E8478; text-align: center; }
.nb-slim-foot a { text-decoration: underline; }

.nb-dl-hero { text-align: center; padding: 80px 0 40px; }
.nb-dl-hero .tick {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(30,201,124,.15);
  border: 2px solid var(--nb-green); display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--nb-green); margin: 0 auto 26px;
}
.nb-dl-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.nb-dl-hero p { color: var(--nb-muted); max-width: 36em; margin: 14px auto 30px; font-size: 17px; }
.nb-next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 80px; }

/* ── ABOUT ── */
.nb-story { max-width: 46em; }
.nb-story p { color: var(--nb-muted); font-size: 16.5px; margin: 0 0 18px; }
.nb-story p b, .nb-story p strong { color: var(--nb-text); }
.nb-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.nb-host { background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 16px; overflow: hidden; }
.nb-host .photo { height: 260px; display: flex; align-items: center; justify-content: center; font-size: 46px; background-size: cover; background-position: center; }
.nb-host .hbody { padding: 30px; }
.nb-host h3 { font-size: 23px; font-weight: 800; margin: 0; }
.nb-host .role { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--nb-green); font-weight: 700; margin: 4px 0 14px; }
.nb-host p { font-size: 15px; color: var(--nb-muted); margin: 0; }

/* ── CONTACT ── */
.nb-contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 56px 0 80px; }
.nb-info-card { background: var(--nb-panel); border: 1px solid var(--nb-line); border-radius: 16px; padding: 30px; margin-bottom: 20px; }
.nb-info-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.nb-info-card p { font-size: 14.5px; color: var(--nb-muted); margin: 0; }
.nb-info-card b { color: var(--nb-text); }

/* ── FOOTER ── */
.nb-footer { padding: 48px 0 38px; border-top: 1px solid var(--nb-line); font-size: 14px; color: var(--nb-muted); }
.nb-f-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: center; }
.nb-f-grid img { height: 76px; width: auto; }
.nb-f-grid ul { display: flex; gap: 14px 24px; list-style: none; flex-wrap: wrap; margin: 0; padding: 0; }
.nb-f-grid li { margin: 0; }
.nb-f-grid a:hover { color: var(--nb-text); }
.nb-f-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--nb-line); font-size: 12.5px; color: #6E8478; max-width: 62em; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nb-navbar-inner { height: 84px; }
  .nb-logo img { height: 60px; }
  .nb-nav-links {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--nb-panel-deep); border-bottom: 1px solid var(--nb-line);
    flex-direction: column; padding: 18px 28px; gap: 16px; align-items: flex-start;
  }
  .nb-nav-links.open { display: flex; }
  .nb-hamburger { display: block; }
  .nb-hero-grid, .nb-landing-grid, .nb-contact-grid, .nb-about-grid { grid-template-columns: 1fr; }
  .nb-pages-grid, .nb-art-grid, .nb-res-grid, .nb-next-steps { grid-template-columns: 1fr; }
  .nb-band-grid { grid-template-columns: 1fr 1fr; }
  .nb-article-layout { grid-template-columns: 1fr; }
  .nb-sidebar { position: static; }
  .nb-h1 { font-size: 38px; }
  .nb-pagehead h1 { font-size: 34px; }
  .nb-chart { height: 220px; gap: 10px; }
  .nb-bar, .nb-next { width: 32px; }
  .nb-hero-grid > * { min-width: 0; }
}
@media (max-width: 600px) {
  .nb-band-grid { grid-template-columns: 1fr; }
  .nb-h1 { font-size: 32px; }
}
