:root {
    --bg-color: #0d1117;
    --bg-alt: #161b22;
    --text-color: #e6edf3;
    --text-muted: #8b949e;
    --primary: #8be9fd;
    /* Diamond Blue */
    --primary-glow: rgba(139, 233, 253, 0.3);
    --accent: #bd93f9;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    animation: spotifyPulse 1.5s ease-in-out infinite;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-100%);
    animation: spotifyProgress 2s ease-in-out forwards;
}

@keyframes spotifyPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.2) drop-shadow(0 0 15px var(--primary-glow));
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spotifyProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Nav */
.forum-nav {
    background: var(--bg-alt);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo img {
    height: 32px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-discord {
    background: #5865F2;
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 20px;
}

/* Header */
.forum-header {
    padding: 40px 0 20px;
}

/* Announcement Cards */
.announcement-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
    transition: 0.3s;
}

.announcement-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.announcement-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.announcement-body {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 968px) {

    .navbar,
    .forum-nav {
        padding: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-alt);
        flex-direction: column;
        justify-content: center;
        padding: 50px 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    .forum-header h1 {
        font-size: 2rem;
    }

    .announcement-title {
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    padding: 50px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}