/*
Theme Name: XAU Strategy Academy
Theme URI: http://xauusdstrategy.com
Description: Professional gold trading strategy and education platform
Version: 1.0
Author: XAU Strategy
Text Domain: xau-strategy-academy
*/

:root {
    --bg-primary: #0c0a1d;
    --bg-secondary: #13112a;
    --bg-card: #1b1838;
    --bg-card-hover: #231f48;
    --accent: #00d4aa;
    --accent-light: #33ffd0;
    --accent-dark: #00a88a;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --blue: #3b82f6;
    --gold: #f0b90b;
    --green: #0ecb81;
    --red: #f6465d;
    --orange: #f59e0b;
    --text-primary: #e8e6f0;
    --text-secondary: #9895b0;
    --text-muted: #6b6784;
    --border: #2a2650;
    --gradient-1: linear-gradient(135deg, #00d4aa, #3b82f6);
    --gradient-2: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-3: linear-gradient(135deg, #f59e0b, #ef4444);
}

* { 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;
}

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

/* === HEADER === */
.site-header {
    background: rgba(19, 17, 42, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.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: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #000;
}

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--text-primary); }
.nav-cta {
    background: var(--gradient-1) !important;
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
}

/* === HERO === */
.hero {
    padding: 80px 0 60px;
    background: radial-gradient(ellipse at 30% 0%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                var(--bg-primary);
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero h1 .grad { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* === STRATEGY LEVELS === */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.level-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.level-card.beginner::before { background: var(--gradient-1); }
.level-card.intermediate::before { background: var(--gradient-2); }
.level-card.advanced::before { background: var(--gradient-3); }

.level-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.level-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.beginner .level-icon { background: rgba(0, 212, 170, 0.1); }
.intermediate .level-icon { background: rgba(139, 92, 246, 0.1); }
.advanced .level-icon { background: rgba(245, 158, 11, 0.1); }

.level-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.beginner .level-tag { background: rgba(0, 212, 170, 0.15); color: var(--accent); }
.intermediate .level-tag { background: rgba(139, 92, 246, 0.15); color: var(--purple-light); }
.advanced .level-tag { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

.level-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.level-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.level-stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.level-stat { text-align: center; flex: 1; }
.level-stat-value { font-size: 18px; font-weight: 700; color: var(--accent); }
.level-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

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

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

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

.section-title .icon { margin-right: 12px; }

/* === STRATEGY ARTICLES === */
.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;
    display: block;
}

.article-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-dark);
    transform: translateY(-4px);
}

.article-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
}

.article-body { padding: 20px; }

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

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

.difficulty-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.difficulty-beginner { background: rgba(0, 212, 170, 0.15); color: var(--accent); }
.difficulty-intermediate { background: rgba(139, 92, 246, 0.15); color: var(--purple-light); }
.difficulty-advanced { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

.article-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.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);
}

.read-time { font-size: 12px; color: var(--text-muted); }
.read-more { font-size: 13px; font-weight: 600; color: var(--accent); }

/* === RISK CALCULATOR WIDGET === */
.calc-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.calc-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.calc-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-field input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.calc-field input:focus { border-color: var(--accent); }

.calc-result {
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.calc-result-item .value { font-size: 24px; font-weight: 700; color: var(--accent); }
.calc-result-item .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* === 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(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #000;
    font-weight: bold;
}

.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(--accent);
}
.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; }

/* step boxes for strategies */
.step-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    display: flex;
    gap: 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}

/* === 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; 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; }
.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) {
    .levels-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .site-nav { display: none; }
    .hero h1 { font-size: 30px; }
    .levels-grid, .articles-grid { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .post-single h1 { font-size: 26px; }
}
