/*
Theme Name: XAU Live Terminal
Description: Real-time gold market data terminal
Version: 1.0
*/

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --red: #ff3b30;
    --green: #30d158;
    --gold: #ffd700;
    --blue: #007aff;
    --orange: #ff9500;
    --text-primary: #f5f5f7;
    --text-secondary: #8e8e93;
    --text-muted: #636366;
    --border: #2c2c2e;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'SF Mono','Fira Code','Inter',monospace; background:var(--bg-primary); color:var(--text-primary); line-height:1.6; }
a { color:var(--gold); text-decoration:none; }

.site-header { background:var(--bg-secondary); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.header-inner { max-width:1400px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:56px; }
.site-logo { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:700; color:var(--text-primary); font-family:'Inter',sans-serif; }
.logo-dot { width:8px; height:8px; background:var(--green); border-radius:50%; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.site-nav { display:flex; gap:24px; align-items:center; }
.site-nav a { color:var(--text-secondary); font-size:13px; font-family:'Inter',sans-serif; }
.site-nav a:hover { color:var(--text-primary); }
.live-badge { background:var(--red); color:#fff; font-size:10px; font-weight:700; padding:2px 8px; border-radius:4px; animation:pulse 2s infinite; }

.price-hero { background:var(--bg-secondary); padding:32px 0; border-bottom:1px solid var(--border); }
.price-inner { max-width:1400px; margin:0 auto; padding:0 24px; display:flex; align-items:center; gap:48px; }
.price-main { font-size:48px; font-weight:800; font-feature-settings:'tnum'; font-family:'Inter',sans-serif; }
.price-change { font-size:20px; font-weight:700; padding:4px 12px; border-radius:6px; }
.price-up { color:var(--green); background:rgba(48,209,88,0.1); }
.price-down { color:var(--red); background:rgba(255,59,48,0.1); }
.price-details { display:flex; gap:32px; margin-left:auto; }
.price-detail { text-align:center; }
.price-detail-label { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; }
.price-detail-value { font-size:16px; font-weight:600; margin-top:4px; font-feature-settings:'tnum'; }

.container { max-width:1400px; margin:0 auto; padding:24px; }
.grid-2 { display:grid; grid-template-columns:2fr 1fr; gap:24px; }

.section-title { font-size:14px; font-weight:600; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1px; margin-bottom:16px; font-family:'Inter',sans-serif; display:flex; align-items:center; gap:8px; }
.section-title .dot { width:6px; height:6px; border-radius:50%; }

.flash-list { display:flex; flex-direction:column; gap:1px; }
.flash-item { background:var(--bg-card); padding:16px 20px; border-left:3px solid transparent; transition:all 0.2s; display:block; color:var(--text-primary); }
.flash-item:first-child { border-left-color:var(--gold); background:var(--bg-card-hover); }
.flash-item:hover { background:var(--bg-card-hover); border-left-color:var(--gold); }
.flash-time { font-size:11px; color:var(--text-muted); font-feature-settings:'tnum'; }
.flash-title { font-size:14px; font-weight:600; margin-top:4px; line-height:1.5; }
.flash-excerpt { font-size:12px; color:var(--text-secondary); margin-top:6px; line-height:1.5; }

.sidebar-card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:20px; margin-bottom:16px; }

.post-single { max-width:800px; margin:40px auto; padding:0 24px; }
.post-single h1 { font-size:28px; font-weight:800; line-height:1.3; margin-bottom:16px; font-family:'Inter',sans-serif; }
.post-single .post-meta { display:flex; gap:16px; color:var(--text-muted); font-size:13px; margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid var(--border); }
.post-content { font-size:15px; line-height:1.8; color:var(--text-secondary); font-family:'Inter',sans-serif; }
.post-content h2 { font-size:20px; font-weight:700; color:var(--text-primary); margin:32px 0 12px; padding-left:12px; border-left:3px solid var(--gold); }
.post-content p { margin-bottom:14px; }
.post-content strong { color:var(--text-primary); }

.site-footer { background:var(--bg-secondary); border-top:1px solid var(--border); padding:32px 0; margin-top:48px; text-align:center; color:var(--text-muted); font-size:12px; font-family:'Inter',sans-serif; }

.chart-box { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; overflow:hidden; height:400px; margin-bottom:24px; }

.audio-player { background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:12px 16px; margin-bottom:24px; display:flex; align-items:center; gap:12px; }
.play-btn { width:36px; height:36px; background:var(--gold); border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#000; font-weight:bold; flex-shrink:0; }

@media(max-width:768px) { .grid-2{grid-template-columns:1fr} .price-inner{flex-wrap:wrap;gap:16px} .price-main{font-size:32px} .price-details{margin-left:0} .site-nav{display:none} }
