/* ============================================================
   GoldTrading.id — Premium Dark-Gold Theme
   Design tokens terinspirasi data-dense dashboard (Kraken)
   dengan palet emas khas trading gold.
   ============================================================ */

:root {
  --bg: #0d1117;            /* near-black navy */
  --bg-card: #161b22;       /* card surface */
  --bg-elev: #1c2333;       /* elevated */
  --border: #262f3f;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --gold: #d4af37;
  --gold-bright: #f0c75a;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --green: #3ddc84;
  --red: #ff6b6b;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== Navbar ===== */
.header {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.logo span { color: var(--gold); }
.nav-menu { display: flex; gap: 26px; list-style: none; }
.nav-menu.nav-open { display: flex; flex-direction: column; gap: 16px; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 20px 24px; border-bottom: 1px solid var(--border); }
.nav-link { color: var(--text-dim); font-size: 14.5px; font-weight: 500; }
.nav-link:hover { color: var(--gold-bright); text-decoration: none; }
.hamburger { display: none; }

/* ===== Hero ===== */
.hero-price {
  padding: 64px 0 56px;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(212,175,55,0.06), transparent 60%);
}
.hero-price-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.kicker {
  color: var(--gold); font-weight: 700; font-size: 13px;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px;
}
.hero-title { font-size: 42px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 14px; }
.gold-text { color: var(--gold-bright); }
.hero-sub { color: var(--text-dim); font-size: 16.5px; max-width: 520px; margin-bottom: 26px; }

/* Price Card */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  max-width: 520px;
  box-shadow: rgba(0,0,0,0.4) 0 18px 40px;
}
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.price-row:last-child { border-bottom: none; }
.price-label { color: var(--text-dim); font-size: 13.5px; }
.price-value { font-size: 34px; font-weight: 800; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.price-change { font-weight: 700; font-size: 16px; }
.price-update { color: var(--text-dim); font-size: 13px; }

/* Buttons */
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: 0.2s; }
.btn-gold-lg { background: var(--gold); color: #111; }
.btn-gold-lg:hover { background: var(--gold-bright); text-decoration: none; }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); text-decoration: none; }
.hero-note { margin-top: 14px; color: var(--text-dim); font-size: 12.5px; }

/* Chart */
.chart-container { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); height: 460px; }
.chart-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 0; }
.chart-fallback svg { width: 100%; height: 100%; display: block; }
.chart-fallback-note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: var(--text-dim); font-size: 12.5px; background: rgba(13,17,23,0.7); padding: 6px; }
.tradingview-widget-container { position: relative; height: 100%; width: 100%; z-index: 1; }
.tradingview-widget-container__widget { position: absolute; inset: 0; height: 100%; width: 100%; }

/* ===== Daily Analysis ===== */
.daily-analysis { padding: 56px 0; border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 34px; }
.section-header h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.section-header p { color: var(--text-dim); font-size: 15px; }
.text-center { text-align: center; }
#daily-analysis-link { text-align: center; font-size: 16px; margin-bottom: 30px; }

.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.level-card.highlight { border-color: var(--gold); background: var(--bg-elev); }
.level-label { display: block; color: var(--text-dim); font-size: 13px; margin-bottom: 6px; }
.level-val { font-size: 24px; font-weight: 800; color: var(--gold-bright); font-variant-numeric: tabular-nums; }

/* ===== Article Section ===== */
.article-section { padding: 56px 0; border-top: 1px solid var(--border); }
.article-box { max-width: 860px; margin: 0 auto; }
.article-box h2 { font-size: 27px; font-weight: 800; margin: 34px 0 14px; letter-spacing: -0.4px; }
.article-box h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.article-box p, .article-box li { color: var(--text-dim); }
.article-box ul, .article-box ol { padding-left: 22px; margin: 14px 0; }
.article-box li { margin: 7px 0; }
.jam-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin: 22px 0;
}
.jam-box h3 { color: var(--gold); }

/* ===== Broker Section ===== */
.brokers { padding: 56px 0; border-top: 1px solid var(--border); background: var(--bg-elev); }
.broker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.broker-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  position: relative; display: flex; flex-direction: column; gap: 14px;
}
.broker-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dim, rgba(212,175,55,0.35)); }
.broker-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}
.broker-logo img { height: 34px; width: auto; max-width: 100%; object-fit: contain; }
.broker-rank {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #111; font-weight: 800; font-size: 13px;
  border-radius: 20px; padding: 3px 16px;
}
.broker-specs { list-style: none; text-align: left; margin: 8px 0; }
.broker-specs li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text-dim); font-size: 14px; }
.broker-specs li:last-child { border-bottom: none; }
.broker-specs strong { color: var(--text); font-weight: 600; }
.btn-gold { background: var(--gold); color: #111; margin-top: auto; }
.btn-gold:hover { background: var(--gold-bright); text-decoration: none; }
.affiliate-note { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 28px; padding: 0 15px; }

/* ===== FAQ ===== */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin: 12px 0; }
.faq-item h3 { font-size: 16.5px; font-weight: 700; color: var(--gold-bright); margin-bottom: 6px; }
.faq-item p { color: var(--text-dim); font-size: 15px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg-card); }
.risk-warning { color: var(--text-dim); font-size: 13.5px; max-width: 860px; }
.risk-warning p { margin: 8px 0; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-price-grid { grid-template-columns: 1fr; gap: 30px; }
  .broker-grid { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
  .chart-container { height: 380px; }
  .hero-title { font-size: 32px; }
  .nav-menu { display: none; }
  .hamburger { display: block; cursor: pointer; }
  .hamburger .bar { display: block; width: 24px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 3px; }
}