/*
Theme Name: XAU Trading Pro
Theme URI: http://xauusdforecast.com
Description: Professional dark-theme gold trading analysis platform
Version: 1.0
Author: XAU Trading
Text Domain: xau-trading-pro
*/

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2b3d;
    --gold: #f0b90b;
    --gold-light: #fcd535;
    --gold-dark: #c99a06;
    --green: #0ecb81;
    --red: #f6465d;
    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --text-muted: #5e6673;
    --border: #2b3544;
    --accent: #1e88e5;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* === HEADER === */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text-primary); }

.nav-cta {
    background: var(--gold) !important;
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 13px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* === LIVE TICKER === */
.live-ticker {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 10px 0;
}

.ticker-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

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

.ticker-price {
    font-size: 18px;
    font-weight: 700;
    font-feature-settings: 'tnum';
}

.ticker-change {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.ticker-up { color: var(--green); }
.ticker-up .ticker-change { background: rgba(14, 203, 129, 0.1); color: var(--green); }
.ticker-down { color: var(--red); }
.ticker-down .ticker-change { background: rgba(246, 70, 93, 0.1); color: var(--red); }

/* === HERO === */
.hero {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 60px 0 40px;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

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

.hero-content .subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-chart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
}

/* === SIGNAL BANNER === */
.signal-banner {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.signal-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f1923 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.signal-direction {
    display: flex;
    align-items: center;
    gap: 16px;
}

.signal-badge {
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signal-buy { background: rgba(14, 203, 129, 0.15); color: var(--green); border: 1px solid rgba(14, 203, 129, 0.3); }
.signal-sell { background: rgba(246, 70, 93, 0.15); color: var(--red); border: 1px solid rgba(246, 70, 93, 0.3); }

.signal-levels {
    display: flex;
    gap: 32px;
}

.signal-level {
    text-align: center;
}

.signal-level-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-level-value {
    font-size: 20px;
    font-weight: 700;
    font-feature-settings: 'tnum';
    margin-top: 4px;
}

/* === ARTICLES === */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--gold);
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: middle;
}

.view-all {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.article-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.article-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a2332, #0f1923);
}

.article-body {
    padding: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-tag {
    font-size: 11px;
    color: var(--gold);
    background: rgba(240, 185, 11, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.article-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.audio-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.audio-btn:hover { color: var(--gold); }

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

/* === SINGLE POST === */
.post-single {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 24px;
}

.post-single h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-single .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-single .audio-player {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-single .audio-player .play-btn {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
}

.post-content p { margin-bottom: 16px; }

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

.post-content ul, .post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li { margin-bottom: 8px; }

.post-content .price-highlight {
    color: var(--gold);
    font-weight: 700;
    font-feature-settings: 'tnum';
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.disclaimer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    margin: 40px auto;
    max-width: 1400px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-chart { height: 300px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .header-inner { height: 56px; }
    .site-nav { display: none; }
    .hero-content h1 { font-size: 28px; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-value { font-size: 18px; }
    .articles-grid { grid-template-columns: 1fr; }
    .signal-card { flex-direction: column; text-align: center; }
    .signal-levels { flex-wrap: wrap; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .post-single h1 { font-size: 26px; }
}
