/* CSS Variables — Desert Theme (matching game) */
:root {
    --primary: #d4a055;
    --primary-dim: rgba(212, 160, 85, 0.3);
    --secondary: #c4522e;
    --accent: #e8c170;
    --success: #7ab648;
    --dark: #1a1208;
    --text: #f0e6d6;
    --glass: rgba(30, 22, 10, 0.65);
    --glass-border: rgba(212, 160, 85, 0.3);
}

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

body {
    background: radial-gradient(circle at center, #1a1208 0%, #0d0a04 100%);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

/* Desert grid background (matching game start screen) */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(transparent 0,
            transparent 50px,
            rgba(212, 160, 85, 0.03) 50px,
            rgba(212, 160, 85, 0.03) 51px),
        repeating-linear-gradient(90deg,
            transparent 0,
            transparent 50px,
            rgba(212, 160, 85, 0.03) 50px,
            rgba(212, 160, 85, 0.03) 51px);
    transform: perspective(500px) rotateX(60deg) translateY(0);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* ===== NAVIGATION ===== */
.site-nav {
    background: rgba(13, 10, 4, 0.95);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 0 0 10px var(--primary-dim);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(240, 230, 214, 0.5);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-shadow: 0 0 10px var(--primary-dim);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--primary);
    font-size: 1.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 10, 4, 0.98);
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

/* ===== PAGE LAYOUT ===== */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(180deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--primary-dim));
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.page-subtitle {
    color: rgba(240, 230, 214, 0.5);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.page-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(212, 160, 85, 0.03);
}

.page-content section {
    margin-bottom: 2.5rem;
}

.page-content h2 {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(232, 193, 112, 0.2);
}

.page-content h3 {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(240, 230, 214, 0.75);
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.page-content a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-dim);
}

.page-content ul,
.page-content ol {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(240, 230, 214, 0.75);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* ===== CONTROLS GRID ===== */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 160, 85, 0.1);
}

.key {
    background: rgba(212, 160, 85, 0.15);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    letter-spacing: 1px;
}

.control-desc {
    color: rgba(240, 230, 214, 0.65);
    font-size: 0.95rem;
}

/* ===== STEP LIST ===== */
.step-list {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step;
    padding: 0.8rem 0 0.8rem 3rem;
    position: relative;
    border-left: 2px solid rgba(212, 160, 85, 0.2);
    margin-left: 1rem;
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: -1rem;
    top: 0.7rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-dim);
}

/* ===== TIPS LIST ===== */
.tips-list {
    list-style: none;
    padding-left: 0;
}

.tips-list li {
    padding: 0.6rem 0 0.6rem 1.5rem;
    position: relative;
}

.tips-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border: 1px solid rgba(212, 160, 85, 0.15);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(212, 160, 85, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    border: none;
    padding-left: 0;
    margin-top: 0;
    text-align: center;
}

/* ===== CTA BOX ===== */
.cta-box {
    text-align: center;
    padding: 2.5rem;
    margin-top: 2rem;
    background: rgba(212, 160, 85, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.cta-box h2 {
    border: none;
    padding-left: 0;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-dim);
}

.cta-box p {
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 3rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px var(--primary-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-btn:hover {
    background: #fff;
    box-shadow: 0 0 50px var(--primary);
    text-decoration: none;
    transform: scale(1.05);
}

/* ===== BLOG CARDS ===== */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 160, 85, 0.15);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(212, 160, 85, 0.08);
}

.blog-card .blog-date {
    font-size: 0.85rem;
    color: rgba(240, 230, 214, 0.35);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.blog-card h3 {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
    text-shadow: 0 0 10px rgba(232, 193, 112, 0.15);
}

.blog-card p {
    margin-bottom: 0;
}

.blog-tag {
    display: inline-block;
    background: rgba(212, 160, 85, 0.15);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
    margin-top: 1rem;
    margin-right: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 160, 85, 0.2);
}

/* ===== CONTACT ===== */
.contact-card {
    background: rgba(212, 160, 85, 0.05);
    border: 1px solid var(--primary);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 160, 85, 0.08);
}

.email-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    border: 1px solid rgba(212, 160, 85, 0.1);
}

.email-link {
    color: #fff !important;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.team-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border: 1px solid rgba(212, 160, 85, 0.15);
    border-radius: 8px;
    text-align: center;
}

.team-card .team-role {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* ===== STATS ROW ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(212, 160, 85, 0.1);
}

.stat-item .stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    display: block;
    text-shadow: 0 0 20px var(--primary-dim);
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(240, 230, 214, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid rgba(212, 160, 85, 0.15);
    margin-top: 4rem;
    padding-top: 3rem;
    background: rgba(5, 4, 2, 0.5);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-col p {
    color: rgba(240, 230, 214, 0.4);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: rgba(240, 230, 214, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(212, 160, 85, 0.08);
    text-align: center;
}

.footer-bottom p {
    color: rgba(240, 230, 214, 0.25);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .page-container {
        padding: 1rem;
    }

    .page-content {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LAST UPDATED ===== */
.last-updated {
    font-size: 0.8rem;
    color: rgba(240, 230, 214, 0.35);
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}
