/* Galaga Redesign CSS */

body.galaga-redesign {
    background-color: #0b0c15; /* Deep space background */
    color: #e0e0e0;
    font-family: 'Source Sans Pro', sans-serif;
    overflow-x: hidden;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: stars 60s linear infinite;
}

@keyframes stars {
    from { background-position: 0 0, 40px 60px, 130px 270px; }
    to { background-position: 550px 550px, 590px 610px, 680px 820px; }
}

/* Header & Nav */
#header-galaga {
    background: rgba(11, 12, 21, 0.98);
    border-bottom: 2px solid #00d2ff; /* Neon blue accent */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 2em 0; /* Increased padding */
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

#nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem; /* Increased gap */
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav ul li a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1em; /* Increased size */
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 0.5em 1em;
}

#nav ul li a:hover {
    color: #00d2ff;
    text-shadow: 0 0 10px #00d2ff;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2.5em 1em; /* Reduced from 4em */
    background: linear-gradient(180deg, rgba(11,12,21,0) 0%, rgba(0, 210, 255, 0.05) 100%);
}

.hero-title {
    font-size: 3em; /* Reduced from 4em */
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px #00d2ff,
        0 0 20px #00d2ff;
    margin-bottom: 0.3em;
    letter-spacing: 5px;
}

.hero-subtitle {
    font-size: 1.2em;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto 2em;
    line-height: 1.6;
}

/* Game Container */
.game-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4em;
    padding: 0 1em;
}

.game-frame {
    border: 4px solid #3366ff; /* Blue accent like enemy ships */
    box-shadow: 0 0 30px rgba(51, 102, 255, 0.4);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* TOC Section */
.toc-section {
    position: fixed;
    left: 2em;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    text-align: left;
    padding: 1.5em;
    background: rgba(11, 12, 21, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.toc-title {
    color: #00d2ff;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5em;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 0.5em;
}

.toc-links {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    list-style: none;
    padding: 0;
}

.toc-links li a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: block;
}

.toc-links li a:hover, .toc-links li a.active {
    color: #00d2ff;
    text-shadow: 0 0 8px #00d2ff;
    transform: translateX(5px);
}

.toc-links li a.active {
    border-left: 2px solid #00d2ff;
    padding-left: 10px;
}

/* Content Sections */
.content-section {
    max-width: 1000px;
    margin: 0 auto 4em auto; /* Centered globally */
    padding: 3em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* Responsive adjustments */
@media screen and (max-width: 1400px) {
    .toc-section {
        left: 1em;
        width: 150px;
    }
}

@media screen and (max-width: 1280px) {
    .toc-section {
        position: static;
        width: auto;
        max-width: 800px;
        margin: 0 auto 3em;
        transform: none;
        text-align: center;
    }
    
    .toc-links {
        flex-direction: row;
        justify-content: center;
        gap: 2em;
    }
}

.content-section h2 {
    color: #3366ff;
    font-size: 2em;
    border-bottom: 1px solid #3366ff;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 1.5em;
}

/* Code Blocks */
pre[class*="language-"] {
    border-radius: 8px;
    border: 1px solid rgba(51, 102, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin: 1.5em 0 !important;
}

code[class*="language-"] {
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    text-shadow: none !important;
}

/* Footer */
#footer {
    background: #080910;
    padding: 1.5em 0; /* Reduced from 3em */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    list-style: none;
    padding: 0;
    margin-bottom: 1em; /* Reduced from 2em */
}

.social-icons li a {
    color: #fff;
    font-size: 1.5em;
    transition: transform 0.2s, color 0.2s;
}

.social-icons li a:hover {
    color: #00d2ff;
    transform: translateY(-5px);
}

.copyright {
    color: #666;
    font-size: 0.9em;
}

.copyright a {
    color: #888;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
}
