/* Game Site Styles V2 - FNAF Edition */

:root {
    --bg-color: #050505;
    --text-color: #cccccc;
    --primary-color: #9d00ff; /* Purple Guy */
    --secondary-color: #c70039; /* Red/Blood */
    --accent-color: #00ff9d; /* Neon Green */
    --card-bg: #111111;
    --border-color: #333333;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-header: 'Courier New', Courier, monospace; /* Retro terminal look */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: #000;
    padding: 10px 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.3);
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
}

.header-top {
    text-align: center;
    margin-bottom: 5px;
    position: relative; /* Added for burger positioning */
}

.logo-link {
    text-decoration: none;
    display: block;
}

.unofficial-notice {
    background: rgba(199, 0, 57, 0.1);
    color: #ff4d4d;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--secondary-color);
    display: inline-block;
}

/* Burger Menu Button */
.burger-btn {
    display: none; /* Hidden on desktop */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    z-index: 110;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(157, 0, 255, 0.5);
}

.burger-btn span:last-child {
    margin-bottom: 0;
}

/* Burger active state (optional animation) */
.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

header .logo-text {
    color: #fff;
    font-family: var(--font-header);
    font-size: 2.2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0px var(--primary-color), -2px -2px 0px var(--secondary-color);
    margin: 5px 0 15px;
    animation: glitch 3s infinite alternate;
}


@keyframes glitch {
    0% { text-shadow: 2px 2px 0px var(--primary-color), -2px -2px 0px var(--secondary-color); }
    90% { text-shadow: 2px 2px 0px var(--primary-color), -2px -2px 0px var(--secondary-color); opacity: 1; }
    92% { text-shadow: -2px -2px 0px var(--primary-color), 2px 2px 0px var(--secondary-color); opacity: 0.8; }
    94% { text-shadow: 2px 2px 0px var(--primary-color), -2px -2px 0px var(--secondary-color); opacity: 1; }
    96% { text-shadow: 0px 0px 0px var(--primary-color), 0px 0px 0px var(--secondary-color); opacity: 0.5; }
    100% { text-shadow: 2px 2px 0px var(--primary-color), -2px -2px 0px var(--secondary-color); opacity: 1; }
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.03);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

nav a strong {
    font-weight: normal; /* Reset bold since we style active state */
}

/* Page Content */
.game-header {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.game-header h1 {
    color: #fff;
    font-family: var(--font-header);
    font-size: 2.5rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.badge {
    background: #222;
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 1px solid var(--accent-color);
    font-family: var(--font-header);
}

/* Game / article hero images */
.game-hero-image {
    margin: 20px 0;
    text-align: center;
}

.game-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

.introduction {
    background: rgba(157, 0, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    font-size: 1.1rem;
}

.game-content {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
    line-height: 1.8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.game-content h2 {
    color: var(--primary-color);
    margin: 30px 0 20px;
    font-size: 1.8rem;
    font-family: var(--font-header);
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.game-content h3 {
    color: var(--accent-color);
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.game-content p {
    margin-bottom: 20px;
}

.game-content ul, .game-content ol {
    margin: 20px 0;
    padding-left: 25px;
    color: #ddd;
}

.game-content li {
    margin: 10px 0;
}

.game-content blockquote {
    background: #1a1a1a;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #aaa;
}

.game-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: color 0.3s;
}

.game-content a:hover {
    color: #fff;
    border-bottom-style: solid;
}

/* Footer */
footer {
    background: #080808;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--secondary-color);
    color: #666;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h4 {
    color: var(--primary-color);
    font-family: var(--font-header);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-disclaimer {
    background: rgba(199, 0, 57, 0.05); /* Very subtle red tint */
    padding: 15px;
    border: 1px solid #333;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #777;
    border-left: 3px solid var(--secondary-color);
}

/* Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Enhanced Download Button */
.download-btn {
    display: inline-block;
    background: rgba(0, 255, 157, 0.05);
    color: var(--accent-color);
    padding: 15px 30px;
    border: 2px solid var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-header);
    text-transform: uppercase;
    transition: all 0.3s;
    margin: 15px 15px 15px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.1);
    z-index: 1;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.6);
    text-shadow: none;
}

/* Utilities */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .logo-text {
        font-size: 1.5rem; /* Smaller logo on mobile */
    }

    .burger-btn {
        display: block; /* Show burger on mobile */
    }
    
    nav {
        display: block; /* Reset flex for mobile drawer */
        position: fixed;
        top: 0;
        right: -100%; /* Hide off-screen */
        width: 250px;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        border-left: 2px solid var(--primary-color);
        padding-top: 60px;
        transition: right 0.3s ease-in-out;
        z-index: 99; /* Behind header content but above page */
        box-shadow: -5px 0 15px rgba(0,0,0,0.8);
        overflow-y: auto;
    }

    nav.nav-active {
        right: 0; /* Slide in */
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        border-bottom: 1px solid #222;
        border-right: none;
        border-left: none;
        border-top: none;
    }

    nav a:hover {
        padding-left: 30px; /* Slide effect on hover */
        background: rgba(157, 0, 255, 0.1);
    }
    
    .game-header {
        padding: 20px;
    }
    
    .download-btn {
        display: block;
        margin-right: 0;
        text-align: center;
    }

    /* Overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 90;
    }
    
    .overlay.active {
        display: block;
    }
}
