/* Geometry Dash Fan Site Styles - Improved Readability */
:root {
    --primary-color: #00e5ff; /* Bright cyan for better contrast */
    --secondary-color: #d500f9; /* Bright purple */
    --accent-color: #ffeb3b; /* Yellow accent */
    --success-color: #4caf50; /* Green for download buttons */
    --bg-dark: #0a0e27; /* Deep dark blue background */
    --bg-card: rgba(20, 30, 48, 0.95); /* Semi-transparent card */
    --text-main: #ffffff;
    --text-muted: #c5d1e8;
    --nav-bg: rgba(10, 14, 39, 0.95);
    --link-color: #26c6da; /* More readable cyan */
    --link-hover: #00e5ff;
    --font-main: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, #0a0e27 0%, #1a0b2e 100%);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    background-attachment: fixed;
}

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

/* Header - Compact & Static */
header {
    background: var(--nav-bg);
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.unofficial-notice {
    background: rgba(255, 235, 59, 0.15);
    color: #ffeb3b;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 235, 59, 0.4);
    text-transform: uppercase;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: rgba(0, 229, 255, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(0, 229, 255, 0.3);
    transform: scale(1.05);
}

/* Navigation - Improved Readability */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

nav a {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

nav a i {
    font-size: 0.85rem;
}

nav a:hover {
    background: rgba(0, 229, 255, 0.2);
    color: #ffffff;
    border-color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

nav a.active {
    background: rgba(0, 229, 255, 0.25);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Main Content Area */
main.container {
    min-height: 60vh;
}

/* Game Header (Hero Section) */
.game-header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.game-header h1 {
    color: #ffffff;
    font-size: 2.3rem;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Badges - Better Contrast */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    justify-content: center;
}

.badge {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge i {
    font-size: 0.85rem;
}

/* Introduction Box - Better Readability */
.introduction {
    background: rgba(0, 229, 255, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: 22px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.introduction p {
    color: #e8f1f8;
    margin: 0;
}

.introduction a {
    color: #26c6da;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(38, 198, 218, 0.4);
}

.introduction a:hover {
    color: #00e5ff;
    text-decoration-color: #00e5ff;
}

/* Game Content - Improved Text Contrast */
.game-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    line-height: 1.8;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-content h2 {
    color: #00e5ff;
    margin: 35px 0 18px;
    font-size: 1.9rem;
    border-bottom: 2px solid rgba(0, 229, 255, 0.3);
    padding-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-content h2:first-of-type {
    margin-top: 0;
}

.game-content h3 {
    color: #ffeb3b;
    margin: 28px 0 12px;
    font-size: 1.5rem;
}

.game-content p {
    margin-bottom: 18px;
    color: #d0dae8;
    font-size: 1.02rem;
}

.game-content ul, .game-content ol {
    margin: 18px 0 25px 25px;
    color: #d0dae8;
}

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

.game-content li strong {
    color: #ffffff;
    font-weight: 700;
}

/* Links in content - MUCH Better Contrast */
.game-content a {
    color: #26c6da;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(38, 198, 218, 0.4);
    transition: all 0.2s ease;
    padding: 0 2px;
}

.game-content a:hover {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.15);
    border-bottom-color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Blockquote */
.game-content blockquote {
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--accent-color);
    padding: 18px 22px;
    margin: 25px 0;
    font-style: italic;
    color: #d0dae8;
    border-radius: 0 8px 8px 0;
}

/* Button Container - Centered */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}

/* Buttons - Improved Design & Centered */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #2e7d32, 0 8px 15px rgba(0,0,0,0.4);
    position: relative;
    top: 0;
    border: 2px solid #81c784;
}

.download-btn i {
    font-size: 1.2rem;
}

.download-btn:active {
    top: 6px;
    box-shadow: 0 0 0 #2e7d32, inset 0 3px 8px rgba(0,0,0,0.4);
}

.download-btn:hover {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #2e7d32, 0 12px 20px rgba(0,0,0,0.5);
}

/* Footer - Better Contrast */
footer {
    text-align: center;
    padding: 45px 0;
    margin-top: 60px;
    border-top: 2px solid rgba(0, 229, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: #999;
}

footer p {
    color: #aaa;
}

.footer-disclaimer {
    background: rgba(255, 152, 0, 0.12);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 25px;
    color: #ffcc80;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.footer-disclaimer p {
    color: #ffcc80;
    margin: 0;
}

.footer-disclaimer strong {
    color: #ffa726;
    font-weight: 700;
}

/* Content Images */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin: 20px 0;
    display: block;
}

@media (min-width: 769px) {
    .content-image.right {
        float: right;
        max-width: 40%;
        margin: 0 0 20px 30px;
    }
    .content-image.left {
        float: left;
        max-width: 40%;
        margin: 0 30px 20px 0;
    }
}

/* Responsive - Mobile Burger Menu */
@media (max-width: 768px) {
    .header-top {
        justify-content: space-between;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 8px;
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .game-header {
        padding: 25px 20px;
    }

    .game-header h1 {
        font-size: 1.7rem;
    }

    .game-content {
        padding: 25px 20px;
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn {
        width: 100%;
        margin: 0 0 10px 0;
    }
    
    .content-image.right,
    .content-image.left {
        float: none;
        max-width: 100%;
        margin: 20px auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 1.4rem;
    }

    .unofficial-notice {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .game-header h1 {
        font-size: 1.5rem;
    }

    .game-content h2 {
        font-size: 1.5rem;
    }

    .game-content {
        padding: 20px 15px;
    }
}

/* Desktop - ensure buttons are centered in game-header */
@media (min-width: 769px) {
    .game-header .button-container,
    .game-header > a.download-btn,
    .game-header > div:has(.download-btn) {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Promo Download Block */
.promo-download-block {
    margin: 25px auto 10px;
    text-align: center;
}

.promo-download-block .promo-heading {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 14px;
    font-weight: 700;
}

.promo-download-block .promo-heading i {
    color: var(--accent-color);
    margin-right: 6px;
}

.promo-download-block .promo-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.promo-download-block .promo-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.promo-download-block .promo-stats i {
    color: var(--success-color);
    font-size: 0.8rem;
}

.promo-banner-link {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    line-height: 0;
}

.promo-banner-link:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.promo-banner-link img {
    display: block;
    height: auto;
    max-width: 100%;
}

.promo-download-block .promo-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #8a9bb5;
}

/* Inline promo in content */
.promo-inline-block {
    margin: 30px auto;
    text-align: center;
    clear: both;
    padding: 20px;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 10px;
}

.promo-inline-block .promo-inline-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.promo-inline-block .promo-inline-text strong {
    color: #ffffff;
}

/* Subdued real download buttons when promo is present */
.button-container-minor {
    margin: 15px 0 0;
    gap: 10px;
}

.button-container-minor .download-btn {
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 3px 0 #2e7d32, 0 4px 8px rgba(0,0,0,0.3);
    border-width: 1px;
    opacity: 0.85;
}

.button-container-minor .download-btn i {
    font-size: 0.95rem;
}

.button-container-minor .download-btn:hover {
    opacity: 1;
    box-shadow: 0 4px 0 #2e7d32, 0 6px 12px rgba(0,0,0,0.4);
}

/* Hide promo on mobile */
@media (max-width: 768px) {
    .promo-download-block,
    .promo-inline-block {
        display: none !important;
    }
    .button-container-minor .download-btn {
        padding: 16px 40px;
        font-size: 1.1rem;
        font-weight: 800;
        text-transform: uppercase;
        box-shadow: 0 6px 0 #2e7d32, 0 8px 15px rgba(0,0,0,0.4);
        border-width: 2px;
        opacity: 1;
    }
}
