@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=Special+Elite&display=swap');

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

body {
    font-family: 'Special Elite', 'Courier New', monospace;
    background: #0a0a0a;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #1a0000 100%);
    min-height: 100vh;
    padding: 20px;
    color: #d4d4d4;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.3) 2px,
            rgba(0, 0, 0, 0.3) 4px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    color: #8b0000;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #8b0000;
    border-radius: 10px;
    box-shadow:
        0 0 20px rgba(139, 0, 0, 0.5),
        inset 0 0 20px rgba(139, 0, 0, 0.1);
    position: relative;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

header::before {
    content: '☠';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 2em;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

header::after {
    content: '☠';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

header h1 {
    font-family: 'Nosifer', cursive;
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow:
        0 0 10px #8b0000,
        0 0 20px #8b0000,
        0 0 30px #8b0000,
        3px 3px 5px rgba(0, 0, 0, 0.8);
    color: #ff0000;
    letter-spacing: 3px;
    animation: bloodDrip 4s ease-in-out infinite;
}

@keyframes bloodDrip {
    0%, 100% { text-shadow: 0 0 10px #8b0000, 0 0 20px #8b0000, 0 0 30px #8b0000, 3px 3px 5px rgba(0, 0, 0, 0.8); }
    50% { text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000, 0 0 40px #ff0000, 3px 5px 8px rgba(0, 0, 0, 0.9); }
}

.subtitle {
    font-size: 1.2em;
    color: #b22222;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
    letter-spacing: 2px;
    font-family: 'Creepster', cursive;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(20, 0, 0, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #8b0000;
    box-shadow:
        0 0 20px rgba(139, 0, 0, 0.3),
        inset 0 0 20px rgba(139, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.5),
        inset 0 0 30px rgba(139, 0, 0, 0.2);
    border-color: #ff0000;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.stat-label {
    color: #b22222;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.section {
    background: rgba(10, 0, 0, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #8b0000;
    box-shadow:
        0 0 30px rgba(139, 0, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section h2 {
    margin-bottom: 20px;
    color: #ff0000;
    font-family: 'Creepster', cursive;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    letter-spacing: 2px;
}

.files-list {
    display: grid;
    gap: 20px;
}

.file-card {
    border: 2px solid #4a0000;
    padding: 20px;
    border-radius: 10px;
    background: rgba(20, 0, 0, 0.6);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.2), transparent);
    transition: left 0.5s;
}

.file-card:hover::before {
    left: 100%;
}

.file-card:hover {
    border-color: #ff0000;
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.4),
        inset 0 0 20px rgba(139, 0, 0, 0.2);
    transform: translateY(-3px);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.file-info h3 {
    color: #ff4444;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    font-family: 'Special Elite', monospace;
}

.file-version {
    display: inline-block;
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-top: 5px;
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.file-meta {
    color: #b22222;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.file-description {
    color: #999;
    margin-bottom: 15px;
    line-height: 1.6;
    border-left: 3px solid #8b0000;
    padding-left: 15px;
    font-style: italic;
}

.download-btn {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    color: white;
    border: 2px solid #ff0000;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Special Elite', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.4),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '⚠';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

.download-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    border-color: #ff4444;
}

.admin-section {
    background: rgba(20, 0, 0, 0.8);
    border: 2px solid #4a0000;
}

.admin-login, .admin-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    padding: 12px;
    border: 2px solid #4a0000;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.7);
    color: #d4d4d4;
    font-family: 'Special Elite', monospace;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.9);
}

textarea {
    min-height: 100px;
    resize: vertical;
    font-family: 'Special Elite', monospace;
}

button {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    color: white;
    border: 2px solid #ff0000;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Special Elite', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
}

.logout-btn {
    background: linear-gradient(135deg, #4a0000 0%, #8b0000 100%);
    margin-top: 20px;
    border-color: #8b0000;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    border-color: #ff0000;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #4a0000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    transition: width 0.3s;
    width: 0%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: pulse-progress 1s infinite;
}

@keyframes pulse-progress {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

#progressText {
    text-align: center;
    margin-top: 10px;
    color: #b22222;
    font-family: 'Special Elite', monospace;
}

.loading {
    text-align: center;
    color: #b22222;
    padding: 40px;
    font-family: 'Special Elite', monospace;
}

footer {
    text-align: center;
    color: #8b0000;
    margin-top: 40px;
    padding: 20px;
    font-family: 'Special Elite', monospace;
    text-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
}

footer a {
    color: #ff0000;
    text-decoration: underline;
    transition: all 0.3s;
}

footer a:hover {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* Blood drip effect - GORY VERSION */
.blood-drip {
    position: fixed;
    top: -10px;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, transparent, #8b0000, #ff0000, #cc0000, #990000);
    animation: drip 3s ease-in infinite;
    opacity: 0.9;
    z-index: 0;
    box-shadow: 0 0 5px #ff0000, 0 0 10px rgba(255, 0, 0, 0.5);
    filter: blur(0.5px);
}

@keyframes drip {
    0% { height: 0; top: -10px; opacity: 0; }
    10% { height: 50px; opacity: 0.9; }
    50% { height: 150px; opacity: 0.9; }
    100% { height: 200px; top: 100vh; opacity: 0; }
}

/* Floating particles */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: #8b0000;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Glitch effect for headers */
.glitch {
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
    93% { transform: translate(-2px, -2px); }
    94% { transform: translate(2px, 2px); }
    95% { transform: translate(0); }
}

/* Creepy shadow effect */
.section:hover {
    box-shadow:
        0 0 40px rgba(139, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 0, 0, 0.7);
}

/* Warning tape effect */
.warning-tape {
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 10px,
        #ffcc00 10px,
        #ffcc00 20px
    );
    height: 30px;
    opacity: 0.1;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .stat-value {
        font-size: 2em;
    }

    .file-header {
        flex-direction: column;
    }
}

/* ========== NEW MULTI-PAGE LAYOUT ========== */

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1a0000 0%, #0a0a0a 100%);
    border-bottom: 2px solid #8b0000;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.5);
    margin: -20px -20px 20px -20px;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    font-family: 'Nosifer', cursive;
    font-size: 1.5em;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
    animation: flicker 3s infinite;
}

.nav-tabs {
    display: flex;
    gap: 10px;
}

.nav-tab {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid #8b0000;
    color: #d4d4d4;
    padding: 10px 20px;
    font-family: 'Special Elite', monospace;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-tab:hover {
    background: rgba(139, 0, 0, 0.4);
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: #8b0000;
    border-color: #ff0000;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

.nav-tab.discord-link {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #5865F2;
}

.nav-tab.discord-link:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3C45A5 100%);
    border-color: #7289DA;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* Page Content */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-content.active {
    display: block;
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 100%);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 60px 40px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 0 40px rgba(139, 0, 0, 0.6), inset 0 0 30px rgba(139, 0, 0, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

.countdown-container.hidden {
    display: none;
}

.countdown-header {
    margin-bottom: 50px;
}

.countdown-title {
    font-family: 'Nosifer', cursive;
    font-size: 2.1em;
    color: #ff0000;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    margin-bottom: 35px;
    animation: flicker 4s ease-in-out infinite;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.countdown-timer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 35px;
    margin: 42px auto;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
}

.countdown-unit {
    background: rgba(139, 0, 0, 0.3);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 42px 56px;
    min-width: 210px;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.countdown-value {
    font-family: 'Nosifer', cursive;
    font-size: 5.6em;
    color: #ff0000;
    text-shadow: 0 0 40px rgba(255, 0, 0, 1);
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}

.countdown-label {
    font-family: 'Special Elite', monospace;
    font-size: 1.26em;
    color: #999999;
    letter-spacing: 5px;
    text-transform: uppercase;
    display: block;
}

.countdown-separator {
    font-family: 'Nosifer', cursive;
    font-size: 5.6em;
    color: #8b0000;
    text-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
    line-height: 1;
    flex: 0 0 auto;
}

/* OUT NOW Message */
.out-now-message {
    font-family: 'Nosifer', cursive;
    font-size: 4em;
    color: #00ff00;
    text-shadow: 0 0 50px rgba(0, 255, 0, 1), 0 0 100px rgba(0, 255, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 10px;
    animation: flicker 2s ease-in-out infinite, pulse 2s ease-in-out infinite;
    padding: 40px;
    margin: 20px 0;
}

/* Locked Download Section */
#downloadSection.locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(50%);
}

.download-btn.locked {
    cursor: not-allowed !important;
    opacity: 0.5;
    background: #333333 !important;
    border-color: #666666 !important;
}

.download-btn.locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive countdown adjustments */
@media (max-width: 768px) {
    .countdown-timer {
        gap: 15px;
    }

    .countdown-unit {
        min-width: 90px;
        padding: 20px 25px;
    }

    .countdown-value {
        font-size: 2.5em;
    }

    .countdown-separator {
        font-size: 2.5em;
    }

    .countdown-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 10px;
    }

    .countdown-unit {
        min-width: 70px;
        padding: 15px 20px;
    }

    .countdown-value {
        font-size: 2em;
    }

    .countdown-separator {
        font-size: 2em;
    }

    .countdown-label {
        font-size: 0.7em;
        letter-spacing: 1px;
    }
}

/* Home Page Countdown */
.home-countdown {
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 100%);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 50px 40px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
}

.home-countdown.hidden {
    display: none;
}

.home-countdown-title {
    font-family: 'Nosifer', cursive;
    font-size: 1.75em;
    color: #ff0000;
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
    margin-bottom: 28px;
    animation: flicker 4s ease-in-out infinite;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.home-countdown-timer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px;
    margin: 28px auto;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
}

.home-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(139, 0, 0, 0.3);
    border: 3px solid #8b0000;
    border-radius: 12px;
    padding: 35px 42px;
    min-width: 175px;
    flex: 0 0 auto;
    box-shadow: 0 0 25px rgba(139, 0, 0, 0.5);
}

.home-countdown-value {
    font-family: 'Nosifer', cursive;
    font-size: 4.2em;
    color: #ff0000;
    text-shadow: 0 0 30px rgba(255, 0, 0, 1);
    line-height: 1;
    display: block;
}

.home-countdown-label {
    font-family: 'Special Elite', monospace;
    font-size: 0.98em;
    color: #999999;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 10.5px;
    display: block;
}

.home-countdown-sep {
    font-family: 'Nosifer', cursive;
    font-size: 4.2em;
    color: #8b0000;
    text-shadow: 0 0 25px rgba(139, 0, 0, 0.8);
    line-height: 1;
    flex: 0 0 auto;
}



/* Responsive adjustments for countdown */
@media (max-width: 768px) {
    .home-countdown-timer {
        gap: 10px;
    }

    .home-countdown-unit {
        min-width: 70px;
        padding: 15px 20px;
    }

    .home-countdown-value {
        font-size: 2em;
    }

    .home-countdown-sep {
        font-size: 2em;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.2) 0%, transparent 100%);
    border: 2px solid #8b0000;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.3);
}

.hero-title {
    font-family: 'Nosifer', cursive;
    font-size: 3em;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #8b0000;
    animation: flicker 3s infinite;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: 'Creepster', cursive;
    font-size: 1.8em;
    color: #d4d4d4;
    text-shadow: 0 0 10px #ff0000;
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: 1.2em;
    color: #8b0000;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #b4b4b4;
    max-width: 800px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid #8b0000;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}


.feature-card:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.feature-card h3 {
    font-family: 'Creepster', cursive;
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature-card p {
    color: #b4b4b4;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 40px 0;
}

.cta-button {
    background: #8b0000;
    border: 2px solid #ff0000;
    color: #ffffff;
    padding: 15px 40px;
    font-family: 'Special Elite', monospace;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.cta-button:hover {
    background: #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.cta-button.secondary {
    background: rgba(139, 0, 0, 0.3);
    border-color: #8b0000;
}

.cta-button.secondary:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #ff0000;
}

.cta-button.discord-cta {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-color: #5865F2;
    text-decoration: none;
    display: inline-block;
}

.cta-button.discord-cta:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3C45A5 100%);
    border-color: #7289DA;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.8);
}

/* Instructions */
.instructions {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid #8b0000;
    border-radius: 10px;
    padding: 20px;
}

.instructions ol {
    margin-left: 20px;
    line-height: 2;
    color: #b4b4b4;
}

.instructions li {
    margin-bottom: 10px;
}

/* Wiki Container */
.wiki-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.wiki-sidebar {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid #8b0000;
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.wiki-sidebar h3 {
    font-family: 'Creepster', cursive;
    color: #ff0000;
    margin-bottom: 15px;
    text-align: center;
}

.wiki-search-container {
    margin-bottom: 15px;
}

.wiki-search-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #8b0000;
    border-radius: 5px;
    color: #d4d4d4;
    font-family: 'Special Elite', monospace;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.wiki-search-input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.wiki-search-input::placeholder {
    color: #666666;
}

.wiki-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wiki-nav-item {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid #8b0000;
    color: #d4d4d4;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.wiki-nav-item:hover {
    background: rgba(139, 0, 0, 0.4);
    border-color: #ff0000;
    color: #ff0000;
    transform: translateX(5px);
}

.wiki-nav-item.active {
    background: #8b0000;
    border-color: #ff0000;
    color: #ffffff;
}

/* Wiki Search Results */
.wiki-search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wiki-search-result {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid #8b0000;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.wiki-search-result:hover {
    background: rgba(139, 0, 0, 0.4);
    border-color: #ff0000;
    transform: translateX(5px);
}

.wiki-search-result-title {
    color: #ff6666;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 5px;
}

.wiki-search-result-category {
    color: #999999;
    font-size: 0.8em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wiki-search-result-snippet {
    color: #b4b4b4;
    font-size: 0.85em;
    line-height: 1.4;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.wiki-search-result-snippet mark {
    background: rgba(255, 0, 0, 0.3);
    color: #ff6666;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.wiki-content {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid #8b0000;
    border-radius: 10px;
    padding: 30px;
    min-height: 500px;
}

.wiki-content h2 {
    font-family: 'Creepster', cursive;
    color: #ff0000;
    margin-bottom: 20px;
}

.wiki-content h3 {
    color: #ff6666;
    margin-top: 25px;
    margin-bottom: 15px;
}

.wiki-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #b4b4b4;
}

.wiki-content ul, .wiki-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #b4b4b4;
}

/* Admin Section Cards */
.admin-section-card {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid #8b0000;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.admin-section-card h3 {
    font-family: 'Creepster', cursive;
    color: #ff0000;
    margin-bottom: 20px;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(180deg, #1a0000 0%, #0a0a0a 100%);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
    position: relative;
}

.modal-content h2 {
    font-family: 'Creepster', cursive;
    color: #ff0000;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    color: #ff0000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ffffff;
    transform: scale(1.2);
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid #8b0000;
    color: #d4d4d4;
    font-family: 'Special Elite', monospace;
    border-radius: 5px;
}

.modal-content textarea {
    min-height: 300px;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 12px 25px;
    background: #8b0000;
    border: 2px solid #ff0000;
    color: #ffffff;
    font-family: 'Special Elite', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.form-actions button[type="button"] {
    background: rgba(139, 0, 0, 0.3);
}

/* Wiki Pages List */
.wiki-pages-list {
    margin-top: 20px;
}

.wiki-page-item {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid #8b0000;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wiki-page-info h4 {
    color: #ff0000;
    margin-bottom: 5px;
}

.wiki-page-info p {
    color: #b4b4b4;
    font-size: 0.9em;
}

.wiki-page-actions {
    display: flex;
    gap: 10px;
}

.wiki-page-actions button {
    padding: 8px 15px;
    background: #8b0000;
    border: 2px solid #ff0000;
    color: #ffffff;
    font-family: 'Special Elite', monospace;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wiki-page-actions button:hover {
    background: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.wiki-page-actions button.delete {
    background: rgba(139, 0, 0, 0.3);
}

.wiki-page-actions button.delete:hover {
    background: #8b0000;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 2px solid #8b0000;
    color: #8b0000;
}

.site-footer p {
    margin: 5px 0;
}

.footer-warning {
    font-family: 'Creepster', cursive;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

/* Responsive for new layout */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-tab {
        padding: 8px 15px;
        font-size: 0.8em;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.3em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .wiki-container {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        position: static;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

