/* =============================================
   AI Trading Signals — main.css
   Design: Navy/Royal Blue + White + Gold accent
   Fonts: Barlow Condensed (display) + Barlow
   ============================================= */

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

:root {
  --navy:        #0a1628;
  --navy-mid:    #0f2044;
  --blue:        #1a3a6e;
  --blue-light:  #2563eb;
  --blue-vivid:  #3b82f6;
  --gold:        #d4a017;
  --gold-light:  #f0c040;
  --gold-pale:   #fef3c7;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-50:     #f1f5f9;
  --gray-100:    #e2e8f0;
  --gray-300:    #94a3b8;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --green:       #10b981;
  --red:         #ef4444;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.12);
  --shadow-md:   0 4px 16px rgba(10,22,40,.15);
  --shadow-lg:   0 8px 32px rgba(10,22,40,.22);
  --radius:      10px;
  --radius-lg:   16px;
  --font-display:'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --transition:  .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--blue-light);
  color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 8px 0;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---- CONTAINER ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }

/* ---- HEADER / NAVBAR ---- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: .03em;
}
.logo:hover { color: var(--gold-light); }
.logo-icon { color: var(--gold); font-size: 1.5rem; }
.logo-text strong { color: var(--gold-light); }

.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,.82); font-family: var(--font-display);
  font-weight: 600; font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--blue); color: var(--gold-light);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: .3s; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e40af 100%);
  padding: 80px 0 70px; position: relative; overflow: hidden;
}
.hero::before {
  content:''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,160,23,.18); border: 1px solid rgba(212,160,23,.4);
  color: var(--gold-light); font-family: var(--font-display); font-size: .8rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--gold-light); }
.hero p { color: rgba(255,255,255,.78); font-size: 1.1rem; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- LIVE TICKER (hero right) ---- */
.gold-ticker-card {
  background: rgba(255,255,255,.06); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.ticker-label {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray-300); margin-bottom: 6px;
}
.ticker-price {
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--white); letter-spacing: -.01em; line-height: 1;
}
.ticker-change { display: flex; gap: 10px; margin: 8px 0 20px; }
.change-up   { color: var(--green); font-weight: 600; font-size: .95rem; }
.change-down { color: var(--red);   font-weight: 600; font-size: .95rem; }
.ticker-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-item { background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px 14px; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-300); }
.stat-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.signal-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .05em; text-transform: uppercase; margin-top: 14px; width: 100%; text-align: center;
}
.signal-buy  { background: rgba(16,185,129,.2); border: 1px solid var(--green); color: var(--green); }
.signal-sell { background: rgba(239,68,68,.2);  border: 1px solid var(--red);   color: var(--red); }
.signal-hold { background: rgba(212,160,23,.2); border: 1px solid var(--gold);  color: var(--gold-light); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .9rem; cursor: pointer;
  border: none; border-radius: 8px; padding: 12px 24px;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; }
.btn-primary   { background: var(--blue-light); color: var(--white); }
.btn-primary:hover { background: var(--blue-vivid); color: var(--white); }
.btn-gold      { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline   { background: transparent; border: 2px solid rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm        { padding: 8px 16px; font-size: .82rem; }
.btn-lg        { padding: 15px 32px; font-size: 1rem; }

/* ---- AD SLOT ---- */
.ad-slot {
  text-align: center; padding: 12px 0; margin: 20px 0;
  background: var(--gray-50); border: 1px dashed var(--gray-100);
  border-radius: var(--radius); min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--gray-300); letter-spacing: .08em;
}
.ad-slot ins { display: block; width: 100%; }

/* ---- SECTIONS ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 12px auto 0; }
.section-tag {
  display: inline-block; font-family: var(--font-display); font-size: .75rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-light); background: rgba(37,99,235,.1);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}

/* ---- CARDS ---- */
.card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; background: rgba(37,99,235,.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }

/* ---- GRID LAYOUTS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---- TOOLS SECTION ---- */
.tool-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--blue-light); }
.tool-card .icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.tool-card h3 { margin-bottom: 10px; }
.tool-card p  { color: var(--gray-500); font-size: .92rem; margin-bottom: 20px; }

/* ---- CALCULATOR ---- */
.calc-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 36px 32px; border: 1px solid var(--gray-100);
}
.calc-wrap h2 { margin-bottom: 6px; }
.calc-sub { color: var(--gray-500); margin-bottom: 28px; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray-700);
}
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-100);
  border-radius: 8px; font-family: var(--font-body); font-size: .95rem;
  color: var(--gray-700); background: var(--off-white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.result-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius); padding: 24px 20px; margin-top: 22px; text-align: center;
}
.result-label { color: rgba(255,255,255,.65); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.result-value {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: var(--gold-light); letter-spacing: -.01em; margin: 4px 0;
}
.result-sub { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ---- SIGNAL TABLE ---- */
.signal-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.signal-table { width: 100%; border-collapse: collapse; background: var(--white); }
.signal-table thead th {
  background: var(--navy); color: rgba(255,255,255,.85);
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 14px 16px; text-align: left;
}
.signal-table tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.signal-table tbody tr:hover { background: var(--gray-50); }
.signal-table td { padding: 13px 16px; font-size: .93rem; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.badge-buy  { background: rgba(16,185,129,.12); color: #059669; border: 1px solid rgba(16,185,129,.3); }
.badge-sell { background: rgba(239,68,68,.12);  color: #dc2626; border: 1px solid rgba(239,68,68,.3); }
.badge-hold { background: rgba(212,160,23,.12); color: #92400e; border: 1px solid rgba(212,160,23,.3); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  padding: 32px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-block {
  text-align: center; padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-block:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  color: var(--gold-light); line-height: 1;
}
.stat-desc { color: rgba(255,255,255,.62); font-size: .85rem; margin-top: 4px; }

/* ---- SENTIMENT METER ---- */
.sentiment-wrap { max-width: 480px; margin: 0 auto; }
.meter-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--gray-500); margin-bottom: 6px; }
.meter-bar { height: 14px; background: var(--gray-100); border-radius: 7px; overflow: hidden; margin-bottom: 8px; }
.meter-fill { height: 100%; border-radius: 7px; transition: width .8s ease; }
.meter-bullish { background: linear-gradient(90deg, #10b981, #34d399); }
.meter-bearish  { background: linear-gradient(90deg, #ef4444, #f87171); }
.sentiment-score {
  text-align: center; font-family: var(--font-display); font-size: 3rem;
  font-weight: 800; color: var(--navy); line-height: 1;
}
.sentiment-verdict {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px;
}

/* ---- BLOG CARDS ---- */
.blog-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img { width: 100%; height: 180px; background: linear-gradient(135deg, var(--navy), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 20px; }
.blog-meta { font-size: .78rem; color: var(--gray-300); margin-bottom: 8px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p  { font-size: .88rem; color: var(--gray-500); margin-bottom: 14px; }

/* ---- ALERT / NOTICE ---- */
.alert { border-radius: var(--radius); padding: 14px 18px; font-size: .9rem; margin: 16px 0; }
.alert-info    { background: rgba(37,99,235,.08); border-left: 4px solid var(--blue-light); color: var(--blue); }
.alert-warning { background: rgba(212,160,23,.1);  border-left: 4px solid var(--gold);       color: #92400e; }
.alert-success { background: rgba(16,185,129,.1);  border-left: 4px solid var(--green);      color: #065f46; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-brand .disclaimer { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 12px; }
.footer-links h3 { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- BREADCRUMB ---- */
.breadcrumb { padding: 12px 0; font-size: .84rem; color: var(--gray-500); }
.breadcrumb a { color: var(--blue-light); }
.breadcrumb span { margin: 0 6px; color: var(--gray-300); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 48px 0 40px; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- LIVE DOT ---- */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,.6);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---- LOADING SKELETON ---- */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 0; z-index: 800;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 12px 24px; border-radius: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .gold-ticker-card { max-width: 400px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .ticker-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .calc-wrap { padding: 24px 18px; }
}

/* ---- PRINT ---- */
@media print {
  .site-header, .site-footer, .ad-slot, .nav-toggle { display: none; }
  body { color: #000; }
}
