/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1f2937;
  --accent:    #00c896;
  --accent2:   #00a07a;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --border:    #30363d;
  --radius:    8px;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* =====================
   NAVIGATION
   ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent2) !important; color: #000 !important; }

/* =====================
   HERO
   ===================== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at top, #0d2d24 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent2);
  color: #000;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: 12px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 20px;
  opacity: 0.7;
}

/* =====================
   STATS BAR
   ===================== */
.stats-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================
   SECTIONS
   ===================== */
section { padding: 72px 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 48px;
}

/* =====================
   ARTICLE CARDS
   ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg3);
}

.card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg3) 0%, #0d2d24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body { padding: 24px; }

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.card-link:hover { color: var(--accent2); }

/* =====================
   AFFILIATE CTA BANNER
   ===================== */
.cta-banner {
  background: linear-gradient(135deg, #0d2d24 0%, #0a1f18 100%);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  margin: 0 0 72px;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 16px;
  opacity: 0.7;
}

/* =====================
   ABOUT STRIP
   ===================== */
.about-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg3);
}
.about-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.about-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 560px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 280px;
  margin-top: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
  max-width: 700px;
  line-height: 1.5;
}

/* =====================
   RISK WARNING BOX
   (eToro affiliate requirement)
   ===================== */
.risk-warning {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.35);
  border-left: 4px solid #ff4d4d;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.risk-warning strong {
  color: #ff6b6b;
  font-size: 0.92rem;
}

.risk-warning-banner {
  background: rgba(255, 77, 77, 0.06);
  border-top: 1px solid rgba(255, 77, 77, 0.2);
  border-bottom: 1px solid rgba(255, 77, 77, 0.2);
  padding: 14px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #ff8080;
}

.risk-warning-banner span { font-weight: 700; }

/* =====================
   ARTICLE LAYOUT
   ===================== */
.article-hero {
  padding: 60px 0 48px;
  background: radial-gradient(ellipse at top, #0d2d24 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}

.article-hero .article-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 16px;
}

.article-hero .article-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 40px 0 14px;
  letter-spacing: -0.3px;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.article-content p {
  margin-bottom: 16px;
  color: #c9d1d9;
  line-height: 1.75;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  margin-bottom: 8px;
  color: #c9d1d9;
  line-height: 1.7;
}

.article-content strong { color: var(--text); }

.article-content .highlight-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.article-content .highlight-box p { margin-bottom: 0; }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }

.sidebar-cta {
  background: linear-gradient(135deg, #0d2d24 0%, #0a1f18 100%);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.sidebar-cta h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.sidebar-cta .btn { width: 100%; text-align: center; }

.sidebar-cta .risk-warning {
  text-align: left;
  font-size: 0.78rem;
  margin: 16px 0 0;
  padding: 12px 14px;
}

.sidebar-nav {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-nav h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}

.sidebar-nav ul { list-style: none; }
.sidebar-nav ul li { margin-bottom: 10px; }
.sidebar-nav ul li a {
  font-size: 0.88rem;
  color: var(--muted);
}
.sidebar-nav ul li a:hover { color: var(--accent); }

/* =====================
   UPDATES / BLOG
   ===================== */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.update-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.update-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.update-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 8px;
}

.update-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.update-card h3 a { color: var(--text); }
.update-card h3 a:hover { color: var(--accent); }

.update-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

/* =====================
   ABOUT PAGE IMAGES
   ===================== */
.about-portrait {
  float: right;
  width: 200px;
  margin: 4px 0 20px 28px;
  border-radius: 8px;
  display: block;
}

.about-img-row {
  display: flex;
  gap: 12px;
  margin: 24px 0 28px;
}
.about-img-row a {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  transition: opacity 0.15s;
}
.about-img-row a:hover { opacity: 0.82; }
.about-img-row img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .about-portrait { width: 130px; margin-left: 16px; }
  .about-img-row { flex-direction: column; }
  .about-img-row img { height: 180px; }
}

/* =====================
   HOME VIDEOS STRIP
   ===================== */
.home-videos-strip {
  padding: 80px 0 72px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.home-vid-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  /* hide scrollbar visually but keep it functional */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.home-vid-row::-webkit-scrollbar { height: 4px; }
.home-vid-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.home-vid-row::-webkit-scrollbar-track { background: transparent; }

.home-vid-card {
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  flex: 0 0 200px;
  width: 200px;
}
.home-vid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.home-vid-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.home-vid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-vid-dur {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.home-vid-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 10px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-vid-views {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 10px 10px;
}

@media (max-width: 600px) {
  .home-videos-strip { padding: 48px 0; }
  .home-vid-card { flex: 0 0 160px; width: 160px; }
}

/* =====================
   RESPONSIVE
   ===================== */
/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  margin-left: 12px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav drawer ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
  z-index: 99;
}
.nav-drawer.open { display: block; }
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-drawer ul li a {
  display: block;
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-drawer ul li:last-child a { border-bottom: none; }
.nav-drawer ul li a:hover { color: var(--text); }
.nav-drawer .nav-cta {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 20px;
  border-bottom: none !important;
  border-radius: var(--radius);
}

@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
  .nav-drawer { display: none !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .stats-inner { gap: 32px; }
  .about-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .cta-banner { padding: 40px 24px; }
  .btn-outline { display: none; }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* ── Video embeds ── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 28px 0;
  border-radius: 8px;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* ── Lightbox ── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}
#lb-overlay.lb-active { display: flex; }
#lb-img {
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  cursor: default;
}
#lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s;
}
#lb-close:hover { opacity: 1; background: rgba(255,255,255,0.22); }
.lb-trigger {
  cursor: zoom-in !important;
  transition: opacity 0.15s;
}
.lb-trigger:hover { opacity: 0.88; }
