/* ===== FALLOUT 76 WASTELAND + PIP-BOY THEME ===== */

/* ===== CSS VARIABLES ===== */
:root {
    --pipboy-green: #30ff50;
    --pipboy-green-dim: #1a8c2e;
    --pipboy-dark: #0a1f0a;
    --wasteland-rust: #8B4513;
    --wasteland-brown: #5D4037;
    --wasteland-beige: #D4C4A8;
    --metal-dark: #2a2a2a;
    --metal-gray: #4a4a4a;
    --radiation-yellow: #FFD700;
    --text-primary: #e8d5b7;
    --text-secondary: #a89880;
    --terminal-bg: #001100;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, #1a1209 0%, #2d2016 50%, #1a1209 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== SCANLINES OVERLAY ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 1000;
    opacity: 0.3;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.main-header {
    background:
        linear-gradient(180deg, rgba(42, 42, 42, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 3px solid var(--wasteland-rust);
    padding: 20px 0;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--metal-gray);
    background: rgba(42, 42, 42, 0.8);
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pipboy-green);
    border-color: var(--pipboy-green);
    background: rgba(48, 255, 80, 0.1);
    box-shadow: 0 0 15px rgba(48, 255, 80, 0.3);
    text-shadow: 0 0 10px var(--pipboy-green-dim);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--radiation-yellow) 50%,
        transparent
    );
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.site-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--wasteland-rust);
    box-shadow:
        0 0 20px rgba(139, 69, 19, 0.5),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    background: var(--metal-dark);
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow:
        0 0 10px rgba(48, 255, 80, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.site-subtitle {
    font-size: 1.2rem;
    color: var(--pipboy-green);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--pipboy-green-dim);
    margin-left: 100px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 60px 0;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

/* ===== PIP-BOY TERMINAL ===== */
.pip-boy-terminal {
    background: var(--terminal-bg);
    border: 3px solid var(--pipboy-green);
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto 40px;
    max-width: 600px;
    box-shadow:
        0 0 30px rgba(48, 255, 80, 0.3),
        inset 0 0 50px rgba(48, 255, 80, 0.05);
    position: relative;
}

.pip-boy-terminal::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--pipboy-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pipboy-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.terminal-header {
    border-bottom: 2px solid var(--pipboy-green);
    padding-bottom: 15px;
    margin-bottom: 15px;
    color: var(--pipboy-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-content {
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-line {
    color: var(--pipboy-green);
    text-shadow: 0 0 5px var(--pipboy-green-dim);
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.8s; }
.terminal-line:nth-child(3) { animation-delay: 1.4s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== HERO TEXT ===== */
.hero-text h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(48, 255, 80, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    display: flex;
    justify-content: center;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #7289da;
    box-shadow:
        0 6px 20px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(88, 101, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.discord-icon {
    width: 28px;
    height: 28px;
}

/* ===== FEATURES SECTION ===== */
.features {
    margin-top: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(48, 255, 80, 0.2);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background:
        linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid var(--metal-gray);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--wasteland-rust),
        transparent
    );
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--wasteland-rust);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 69, 19, 0.2);
}

.link-card:hover {
    border-color: var(--pipboy-green);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(48, 255, 80, 0.3);
}

.card-link-text {
    display: inline-block;
    margin-top: 15px;
    color: var(--pipboy-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(48, 255, 80, 0.5));
}

.feature-card h3 {
    color: var(--pipboy-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--pipboy-green-dim);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ===== FOOTER ===== */
.main-footer {
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-top: 3px solid var(--wasteland-rust);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-subtitle {
    color: var(--pipboy-green);
    font-size: 1rem;
    font-style: italic;
    text-shadow: 0 0 10px var(--pipboy-green-dim);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }

    .site-icon {
        width: 60px;
        height: 60px;
    }

    .site-subtitle {
        margin-left: 0;
        font-size: 1rem;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

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

    .discord-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}
