@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0a0a;
  color: #ccc;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: #D4AF37; text-decoration: none; }
a:hover { color: #F0D060; }

/* Ticker Bar */
.ticker-wrap {
  background: #111;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
  height: 40px;
  position: relative;
}
.ticker {
  display: flex;
  animation: ticker 30s linear infinite;
  position: absolute;
  white-space: nowrap;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
}
.ticker-item .symbol { color: #fff; font-weight: 700; }
.ticker-item .price { color: #ccc; }
.ticker-item .change.up { color: #00cc66; }
.ticker-item .change.down { color: #ff3333; }

/* Indices Bar */
.indices-bar {
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 10px 20px;
  font-size: 13px;
}
.index-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.index-item .name { color: #888; font-weight: 600; }
.index-item .value { color: #fff; }

/* Nav */
nav {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 16px 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav-logo img, .nav-logo svg { height: 50px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: #888;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .2s;
}
.nav-links a:hover { color: #D4AF37; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.hero p {
  font-size: 18px;
  color: #888;
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Sponsors */
.sponsors {
  padding: 40px 0;
  border-bottom: 1px solid #1a1a1a;
}
.sponsors h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #D4AF37;
  margin-bottom: 24px;
  text-align: center;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.sponsor-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 24px;
  transition: border-color .3s;
}
.sponsor-card:hover { border-color: #D4AF37; }
.sponsor-card .ticker-badge {
  display: inline-block;
  background: #1a1a0a;
  color: #D4AF37;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.sponsor-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.sponsor-card p { font-size: 14px; color: #888; line-height: 1.5; }

/* Articles Grid */
.articles-section { padding: 50px 0; }
.articles-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #fff;
  margin-bottom: 30px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.article-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, border-color .3s;
}
.article-card:hover { transform: translateY(-4px); border-color: #333; }
.article-card .thumb {
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card .thumb .overlay-ticker {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: #D4AF37;
  opacity: 0.8;
}
.article-card .content { padding: 20px; }
.article-card .meta { font-size: 12px; color: #666; margin-bottom: 8px; }
.article-card h3 { font-size: 17px; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.article-card p { font-size: 14px; color: #888; }

/* Newsletter Signup */
.newsletter {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a, #111);
  border-top: 1px solid #1a1a1a;
}
.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
}
.newsletter p { color: #888; margin-bottom: 24px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  outline: none;
}
.newsletter-form input:focus { border-color: #D4AF37; }
.newsletter-form button {
  padding: 14px 28px;
  background: #D4AF37;
  color: #0a0a0a;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: #F0D060; }

/* Footer */
footer {
  background: #050505;
  border-top: 1px solid #1a1a1a;
  padding: 40px 0 30px;
  text-align: center;
}
footer .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
footer .footer-links a { color: #555; font-size: 13px; }
footer .footer-links a:hover { color: #D4AF37; }
footer .copyright { color: #333; font-size: 12px; }

/* Services Section */
.services { padding: 50px 0; border-bottom: 1px solid #1a1a1a; }
.services h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
}
.services > .container > p { text-align: center; color: #888; margin-bottom: 30px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.service-card .icon { font-size: 32px; margin-bottom: 12px; }
.service-card h3 { color: #D4AF37; font-size: 16px; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: #888; }

/* ARTICLE PAGE */
.article-header {
  padding: 50px 0 30px;
  border-bottom: 1px solid #1a1a1a;
}
.article-header .category {
  color: #D4AF37;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-header .meta { color: #666; font-size: 14px; }
.article-header .meta span { margin-right: 16px; }

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  margin: 32px 0 16px;
}
.article-body p { margin-bottom: 18px; color: #bbb; }
.article-body ul {
  margin: 16px 0 24px 24px;
  color: #bbb;
}
.article-body ul li { margin-bottom: 8px; }
.article-body ul li::marker { color: #D4AF37; }

.chart-placeholder {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: #444;
  margin: 30px 0;
  font-size: 14px;
}

.disclaimer-box {
  background: #111;
  border: 1px solid #2a2a0a;
  border-radius: 8px;
  padding: 20px;
  margin-top: 40px;
  font-size: 11px;
  color: #666;
  line-height: 1.6;
}

/* Disclaimer page */
.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.disclaimer-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 24px;
}
.disclaimer-content h3 { color: #D4AF37; margin: 24px 0 12px; }
.disclaimer-content p { margin-bottom: 16px; color: #999; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .indices-bar { flex-wrap: wrap; gap: 16px; }
  .newsletter-form { flex-direction: column; }
  .article-header h1 { font-size: 26px; }
}

/* ===== MOBILE FIXES ===== */
html, body { overflow-x: hidden; max-width: 100vw; }

@media (max-width: 768px) {
  /* Hamburger menu */
  .nav-inner { flex-wrap: wrap; position: relative; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #D4AF37;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-top: 1px solid #1a1a1a;
    font-size: 14px;
  }

  /* Indices bar: scroll horizontally instead of breaking layout */
  .indices-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 10px 16px;
  }
  .index-item { flex-shrink: 0; }

  /* Ticker bar */
  .ticker-wrap { overflow: hidden; max-width: 100vw; }

  /* Grids: single column */
  .sponsor-grid,
  .articles-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Container padding */
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; padding: 0 8px; }

  /* Article page */
  .article-header h1, .article-title { font-size: 24px; }
  .article-body, .article-wrap { padding-left: 16px; padding-right: 16px; }

  /* Stats bar on article pages */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  footer .footer-links { flex-wrap: wrap; gap: 12px; }

  /* Services */
  .services h2 { font-size: 22px; }

  /* Newsletter */
  .newsletter h2 { font-size: 24px; }

  /* TradingView chart container */
  .chart-placeholder,
  [class*="tradingview"],
  .tradingview-widget-container { max-width: 100%; overflow: hidden; }

  /* Highlight/CTA boxes */
  .highlight-box, .cta-banner, .disclaimer-box { 
    padding: 16px; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
  }

  /* Tables */
  table { display: block; overflow-x: auto; max-width: 100%; }
}


/* Hamburger: hidden by default, shown only on mobile */
.nav-toggle { display: none !important; }
@media (max-width: 768px) {
  .nav-toggle { display: block !important; }
}
