:root {
    --bg-color: #050505;
    --panel-bg: rgba(15, 15, 20, 0.7);
    --border-color: #333;
    --accent-color: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.5);
    --text-main: #e0e0e0;
    --text-muted: #888;
    --font-heading: 'Share Tech Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

[data-theme="hacker"] {
    --bg-color: #000a00;
    --panel-bg: rgba(0, 15, 0, 0.8);
    --border-color: #003300;
    --accent-color: #00ff00;
    --accent-glow: rgba(0, 255, 0, 0.5);
    --text-main: #00cc00;
    --text-muted: #005500;
}

[data-theme="retro"] {
    --bg-color: #1a0525;
    --panel-bg: rgba(25, 5, 40, 0.8);
    --border-color: #5a189a;
    --accent-color: #ff00ff;
    --accent-glow: rgba(255, 0, 255, 0.5);
    --text-main: #f8e5ff;
    --text-muted: #9d4edd;
}

[data-theme="ocean"] {
    --bg-color: #000b18;
    --panel-bg: rgba(0, 15, 30, 0.8);
    --border-color: #003049;
    --accent-color: #00b4d8;
    --accent-glow: rgba(0, 180, 216, 0.5);
    --text-main: #caf0f8;
    --text-muted: #48cae4;
}

[data-theme="blood"] {
    --bg-color: #1a0000;
    --panel-bg: rgba(30, 0, 0, 0.8);
    --border-color: #660000;
    --accent-color: #ff3333;
    --accent-glow: rgba(255, 51, 51, 0.5);
    --text-main: #ffcccc;
    --text-muted: #aa3333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: rotateGlow 30s linear infinite;
    transition: background 0.5s ease;
    opacity: 0.15;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
    text-shadow: 0 0 10px var(--accent-glow);
    transition: all 0.5s ease;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.subtitle {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1.2rem;
}

main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 250px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

#nav-list {
    list-style: none;
}

#nav-list li {
    margin-bottom: 0.5rem;
}

#nav-list hr {
    border: 0;
    border-top: 1px dashed var(--border-color);
    margin: 1rem 0;
}

.nav-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-color);
    color: var(--accent-color);
    padding-left: 1.5rem;
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.content-area {
    flex: 1;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    min-height: 500px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    transition: border-color 0.5s ease, color 0.5s ease;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.news-item {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 0 4px 4px 0;
    transition: border-color 0.5s ease;
}

.news-item h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.game-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.banner-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.download-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.download-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-glow);
    font-weight: bold;
}

/* Theme Switcher Styles */
.theme-switcher-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-switcher-container label {
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
}

.styled-select {
    background: var(--bg-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.styled-select:focus {
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Ad Container Styling for Local Testing/Compliance */
.ad-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    text-align: center;
    margin-top: 2rem;
    padding: 10px;
    border-radius: 4px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.ad-container::before {
    content: "Advertisement";
    position: absolute;
    opacity: 0.5;
}

.in-article-ad {
    margin: 1.5rem 0;
    width: 100%;
}

ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

li {
    margin-bottom: 0.2rem;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--panel-bg);
    border-top: 2px solid var(--accent-color);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .sidebar {
        flex: auto;
        width: 100%;
    }

    .theme-switcher-container {
        flex-direction: column;
        align-items: stretch;
    }
}