/* =========================================
   1. Base Settings & Variables
   ========================================= */
:root {
    --bg-color: #1a0b2e;
    --card-bg: #2d1b4e;
    --text-main: #e0e0e0;
    --accent-red: #ff004d;
    --accent-green: #00ff9d;
    --hover-blue: #00ccff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* =========================================
   2. Navigation & Breadcrumbs
   ========================================= */
nav {
    background-color: #000;
    padding: 15px 0;
    border-bottom: 3px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}
.logo span { color: var(--accent-red); }

.nav-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 15px;
    font-size: 13px;
    font-weight: bold;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-green); }

.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #888;
}
.breadcrumbs a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}
.breadcrumbs span.separator { margin: 0 8px; color: #555; }
.breadcrumbs span.current { color: var(--accent-green); font-weight: bold; }

/* =========================================
   3. Global Layout & Headings
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 { font-family: 'Press Start 2P'; color: var(--accent-green); font-size: 1.5rem; margin-top: 0; }
h2 {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-top: 60px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    line-height: 1.5;
}
h3 { color: var(--accent-green); margin-top: 20px; }

/* =========================================
   4. Hero Section (Updated Layout)
   ========================================= */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(26,11,46,1)), url('/images/cover.webp'); 
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--accent-red);
}
.hero h1 {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-red);
    font-size: 2.8rem;
    text-shadow: 4px 4px 0 #000;
    margin-bottom: 15px;
    letter-spacing: -2px;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ddd;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero p span {
    color: #00ff9d;
    font-weight: normal;
    opacity: 0.9;
}


.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
}


.play-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #00ff9d;
    color: #000;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
    border: 2px solid #00ff9d;
    transition: all 0.3s ease;
}
.play-btn:hover {
    background-color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.8);
}


.read-btn.secondary {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.read-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #00ff9d;
    border-color: #00ff9d;
    transform: translateY(-3px);
}

/* =========================================
   5. Game Grid & Cards
   ========================================= */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.game-card {
    display: flex;
    flex-direction: column;
    background: #000;
    border: 2px solid #444;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    height: 100%;
}
.game-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-green);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
}
.game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background-color: #222;
    border: none;
}
.game-title {
    padding: 15px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    background-color: #151515;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

/* --- Coming Soon Styling (Added Back) --- */
.game-card.coming-soon {
    cursor: default;
    position: relative;
    border-color: #444;
}
.game-card.coming-soon img {
    opacity: 0.3;
    filter: grayscale(100%);
}
.game-card.coming-soon::after {
    content: "COMING SOON";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', cursive;
    color: #00ff9d;
    font-size: 0.8rem;
    text-shadow: 2px 2px 0 #000;
    white-space: nowrap;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #00ff9d;
}
.game-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #444;
}

/* =========================================
   6. Game Page Specifics (Play Area)
   ========================================= */
.game-hero {
    margin-bottom: 40px;
    background: #000;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #444;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}
.game-frame {
    width: 100%;
    height: 600px; 
    border: none;
    display: block;
}
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}
.back-btn:hover { text-decoration: underline; }

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 30px;
}

/* Info Box & Sidebar */
.info-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 20px;
}
.controls-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.controls-table td { padding: 8px; border-bottom: 1px solid #444; }
.key { font-weight: bold; color: var(--accent-green); }
.feature-list { list-style: none; padding: 0; }
.feature-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.feature-list li::before { content: "💀"; position: absolute; left: 0; font-size: 0.8rem; }

/* Details Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3d2c61;
}
.details-table td { padding: 15px; border-bottom: 1px solid #3d2c61; }
.details-table tr:last-child td { border-bottom: none; }
.details-label { font-weight: bold; color: var(--accent-green); width: 25%; }

/* =========================================
   7. Content Elements
   ========================================= */
/* TikTok Grid */
.tiktok-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}
.tiktok-item {
    flex: 1 1 23%; 
    min-width: 250px; 
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
blockquote.tiktok-embed { 
    margin: 0 !important; 
    max-width: 100% !important; 
    min-width: unset !important;
}

/* Video Responsive (YouTube) */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #333;
    background: #000;
    margin-bottom: 30px;
}
.video-responsive iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Keys Visuals */
.keys-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}
.key-box {
    background: #000;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #555;
    text-align: center;
    min-width: 140px;
}
.key {
    display: inline-block;
    border: 2px solid #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

/* FAQ */
.faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--accent-green);
}
.faq-question {
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    display: block;
    font-size: 1.1rem;
}
.faq-answer { font-size: 0.95rem; color: #ccc; }
.keyword { color: var(--accent-green); font-weight: bold; }

/* Community Theories */
.theory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.theory-card {
    background: #2d1b4e;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, border-color 0.2s;
}
.theory-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9d; 
}
.theory-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.username { font-weight: bold; color: #fff; font-size: 0.9rem; }
.platform { font-size: 0.75rem; color: #888; margin-top: 2px; }
.theory-content {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.6;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ff004d;
}
.vote-actions { display: flex; gap: 10px; }
.vote-btn {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
}
.vote-btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.vote-btn.active-agree {
    background: rgba(0, 255, 157, 0.15);
    border-color: #00ff9d;
    color: #00ff9d;
    font-weight: bold;
}
.vote-btn.active-disagree {
    background: rgba(255, 0, 77, 0.15);
    border-color: #ff004d;
    color: #ff004d;
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: #666;
    margin-top: 60px;
    background: #000;
    border-top: 1px solid #333;
}

/* =========================================
   9. Mobile Responsive Rules
   ========================================= */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; }
    .nav-links { margin-top: 15px; }
    .content-grid { grid-template-columns: 1fr; }
    .game-frame { height: 400px; }
    .hero h1 { font-size: 1.8rem; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .tiktok-item { flex: 1 1 100%; } 
    .video-grid-small { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .play-btn, .read-btn.secondary {
        width: 80%;
        text-align: center;
        display: block;
    }
    .mobile-break {
        display: block;
    }
}