@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    /* Enforce crisp edges for images/icons */
}

:root {
    --mc-blue: #3b82f6;
    --mc-blue-dark: #1e40af;
    --mc-blue-light: #60a5fa;
    --mc-blue-glow: #60a5fa;
    --mc-dark: #080c14;
    --mc-darker: #05070a;
    --mc-card: rgba(15, 30, 60, 0.6);
    --mc-border: rgba(59, 130, 246, 0.3);
    --text-white: #f8fafc;
    --text-gray: #cbd5e1;
    --gm-lifesteal: #67e8f9;
    --gm-practice: #fb923c;
    --gm-survival: #86efac;
    --gm-vanilla: #c084fc;
    --btn-shadow: 0 4px 0 var(--mc-blue-dark);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--mc-darker);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(-45deg, #05070a, #0a1628, #0d1a2d, #081020, #05070a);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* scanline overlay for retro CRT feel */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mc-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-progress {
    width: 200px;
    height: 6px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22d3ee, #3b82f6);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: progressFlow 1.5s ease-in-out infinite;
}

@keyframes progressFlow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.preloader-dots {
    display: flex;
    gap: 8px;
}

.preloader-dots span {
    width: 10px;
    height: 10px;
    background: var(--mc-blue);
    /* Make dots square for MC feel */
    border-radius: 2px;
    animation: preloaderBounce 1.2s ease-in-out infinite;
    box-shadow: 2px 2px 0 var(--mc-blue-dark);
}

.preloader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes preloaderBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    40% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 35%);
    animation: backgroundShift 40s ease-in-out infinite;
    will-change: opacity;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--mc-blue);
    opacity: 0.3;
    /* Square particles */
    border-radius: 0;
    animation: floatUp 20s infinite linear;
    box-shadow: 0 0 4px var(--mc-blue);
    will-change: transform, opacity;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    height: 72px;
    /* Increased height */
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(80, 80, 90, 0.3);
    transition: background 0.08s ease, border-color 0.08s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 10, 0.98);
    border-bottom-color: rgba(100, 100, 110, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 12px;
}

.nav-logo img {
    height: 52px;
    /* Bigger logo */
    width: auto;
    image-rendering: pixelated;
    transition: transform 0.08s ease;
}

.nav-logo:hover img {
    transform: scale(1.08);
}

.nav-logo span {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 6px;
}

.nav-item {
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: #9ca3af;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    /* Bigger text */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    transition: all 0.08s ease;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1.1rem;
    /* Bigger icons */
    opacity: 0.7;
    transition: all 0.08s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(100, 100, 110, 0.5);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 120, 130, 0.6);
}

.nav-link.active i {
    opacity: 1;
    color: var(--mc-blue-light);
}

/* ... nav-toggle ... */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    gap: 5px;
    position: absolute;
    right: 15px;
    border-radius: 6px;
    transition: background 0.08s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #9ca3af;
    border-radius: 2px;
    transition: all 0.12s ease;
}

.nav-toggle.active span {
    background: #ffffff;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* Hero styles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #000000, #020617, #0f172a, #020617, #000000);
    background-size: 400% 400%;
    animation: heroGradient 30s ease infinite;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(20deg);
    animation: pixelGridScroll 20s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
}

@keyframes pixelGridScroll {
    0% {
        transform: perspective(500px) rotateX(20deg) translateY(0) translateX(0);
    }

    100% {
        transform: perspective(500px) rotateX(20deg) translateY(-40px) translateX(-40px);
    }
}

/* Stars Background */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 25px 5px, white, transparent),
        radial-gradient(1px 1px at 50px 25px, white, transparent),
        radial-gradient(1px 1px at 125px 20px, white, transparent),
        radial-gradient(1.5px 1.5px at 50px 75px, white, transparent),
        radial-gradient(2px 2px at 15px 125px, white, transparent),
        radial-gradient(2.5px 2.5px at 110px 80px, white, transparent);
    background-size: 250px 250px;
    opacity: 0.3;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.6;
    }
}

/* Comets */
.comet-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    /* Above stars */
}

.comet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    /* Super Glow */
    box-shadow:
        0 0 0 4px rgba(100, 200, 255, 0.2),
        0 0 15px rgba(56, 189, 248, 1),
        0 0 30px rgba(59, 130, 246, 1),
        0 0 60px rgba(59, 130, 246, 0.8);
    opacity: 0;
    transform: rotate(-45deg);
    animation: shoot 10s ease-in-out infinite;
    /* Faster (was 15s) */
    will-change: transform, opacity;
}

.comet::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 350px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), #fff);
}

.comet:nth-child(1) {
    top: -10%;
    right: 15%;
    animation-delay: 0s;
    animation-duration: 9s;
}

.comet:nth-child(2) {
    top: 30%;
    right: -5%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.comet:nth-child(3) {
    top: 60%;
    right: -10%;
    animation-delay: 6s;
    animation-duration: 11s;
}

@keyframes shoot {
    0% {
        transform: rotate(-45deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        transform: rotate(-45deg) translateX(-150vh);
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-150vh);
    }
}



@keyframes heroGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-banner {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.35;
    /* Subtle transparency */
    mix-blend-mode: overlay;
    /* Blends well with the gradient */
    animation: bannerZoom 30s ease-in-out infinite alternate;
}

@keyframes bannerZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vignette effect - clearer center to show gradient */
    background: radial-gradient(circle at center, rgba(8, 12, 20, 0.1) 0%, rgba(5, 7, 10, 0.85) 95%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 100px 20px 40px;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-logo-container {
    margin-bottom: 20px;
}

.hero-logo {
    max-width: 140px;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-family: 'VT323', monospace;
    font-size: 4rem;
    color: var(--text-white);
    /* 3D Text Effect */
    text-shadow:
        0 4px 0 var(--mc-blue-dark),
        0 8px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
    letter-spacing: 2px;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: var(--mc-blue-light);
    margin-bottom: 35px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.server-info-box {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ip-box {
    background: rgba(20, 30, 50, 0.8);
    backdrop-filter: blur(4px);
    /* Minecraft Border */
    border: 2px solid #5e6d8a;
    border-bottom-width: 4px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.ip-box:hover {
    transform: translateY(-2px);
    border-color: var(--mc-blue-light);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
    background: rgba(30, 58, 138, 0.4);
}

.ip-box:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    border-bottom-width: 2px;
}

.ip-label {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ip-address {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.ip-hint {
    font-size: 0.7rem;
    color: var(--mc-blue-light);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.status-box {
    background: rgba(20, 30, 50, 0.8);
    border: 2px solid #5e6d8a;
    border-bottom-width: 4px;
    padding: 15px 30px;
    text-align: center;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    box-shadow: 2px 2px 0 #14532d;
    border-radius: 0;
    animation: statusBlink 1.5s ease-in-out infinite;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 2px 2px 0 #7f1d1d;
    animation: none;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #4ade80;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.player-count {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.player-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 4px;
    text-transform: uppercase;
}

.gamemodes-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.gamemode-item {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid var(--mc-border);
    border-bottom-width: 4px;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.gamemode-item:hover {
    transform: translateY(-3px);
    color: white;
    filter: brightness(1.2);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3);
}

.gamemode-item:active {
    transform: translateY(0px);
    border-bottom-width: 2px;
    margin-top: 2px;
    /* Visually push down */
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.gamemode-item:nth-child(1) {
    --gm-color: var(--gm-lifesteal);
    border-color: #0e7490;
}

.gamemode-item:nth-child(1):hover {
    border-color: var(--gm-lifesteal);
    background: rgba(8, 145, 178, 0.2);
}

.gamemode-item:nth-child(1) i {
    color: var(--gm-lifesteal);
    text-shadow: 0 0 5px var(--gm-lifesteal);
}

.gamemode-item:nth-child(2) {
    --gm-color: var(--gm-practice);
    border-color: #c2410c;
}

.gamemode-item:nth-child(2):hover {
    border-color: var(--gm-practice);
    background: rgba(234, 88, 12, 0.2);
}

.gamemode-item:nth-child(2) i {
    color: var(--gm-practice);
    text-shadow: 0 0 5px var(--gm-practice);
}

.gamemode-item:nth-child(3) {
    --gm-color: var(--gm-vanilla);
    border-color: #7e22ce;
}

.gamemode-item:nth-child(3):hover {
    border-color: var(--gm-vanilla);
    background: rgba(147, 51, 234, 0.2);
}

.gamemode-item:nth-child(3) i {
    color: var(--gm-vanilla);
    text-shadow: 0 0 5px var(--gm-vanilla);
}

.gamemode-item:nth-child(4) {
    --gm-color: var(--gm-survival);
    border-color: #15803d;
}

.gamemode-item:nth-child(4):hover {
    border-color: var(--gm-survival);
    background: rgba(22, 163, 74, 0.2);
}

.gamemode-item:nth-child(4) i {
    color: var(--gm-survival);
    text-shadow: 0 0 5px var(--gm-survival);
}


/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.1s;
    border: 2px solid;
    border-bottom-width: 4px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    image-rendering: pixelated;
}

.mc-btn-primary {
    background: var(--mc-blue);
    border-color: #1e3a8a;
    /* Darker blue for sides */
    border-top-color: #60a5fa;
    /* Lighter top */
    color: white;
    text-shadow: 2px 2px 0 #1e3a8a;
    box-shadow: 0 4px 0 #1e3a8a, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.mc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1e3a8a, 0 15px 25px rgba(0, 0, 0, 0.5);
    background: #4B90F7;
}

.mc-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1e3a8a;
    border-bottom-width: 2px;
}

.mc-btn-secondary {
    background: #334155;
    border-color: #1e293b;
    border-top-color: #64748b;
    color: white;
    text-shadow: 2px 2px 0 #0f172a;
    box-shadow: 0 4px 0 #0f172a, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.mc-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0f172a, 0 15px 25px rgba(0, 0, 0, 0.5);
    background: #475569;
}

.mc-btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0f172a;
    border-bottom-width: 2px;
}

.mc-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--mc-blue-dark);
}

.mc-btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border-color: var(--mc-purple);
    color: var(--mc-blue-light);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.mc-btn-secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--mc-purple-dark);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    color: white;
    transform: translateY(-2px);
}

.discord-btn {
    flex-direction: column;
    gap: 4px;
    padding: 10px 24px;
}

.discord-count-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--mc-blue);
    color: white;
    padding: 12px 30px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    border: 3px solid var(--mc-blue-dark);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.page-content {
    padding: 120px 20px 60px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    color: var(--mc-blue-light);
    text-shadow: 2px 2px 0 var(--mc-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-gray);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.staff-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--mc-border);
    padding: 20px 15px;
    text-align: center;
    transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.staff-card:hover {
    border-color: var(--mc-blue);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-card[data-role="Owner"] {
    border-color: rgba(34, 211, 238, 0.4);
}

.staff-card[data-role="Owner"]:hover {
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.15);
}

.staff-card[data-role="Owner"] .staff-avatar img {
    border-color: #22d3ee;
}

.staff-card[data-role="Executive"] {
    border-color: rgba(139, 92, 246, 0.4);
}

.staff-card[data-role="Executive"] .staff-avatar img {
    border-color: #8b5cf6;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--mc-border);
    background: rgba(0, 0, 0, 0.3);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.2s ease;
}

.staff-card:hover .staff-avatar img {
    transform: scale(1.1);
}

.staff-name {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.staff-role {
    display: inline-block;
    padding: 4px 15px;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: white;
    text-transform: capitalize;
}

.staff-role.owner {
    background: linear-gradient(135deg, #67e8f9, #22d3ee);
    color: #0c4a6e;
}

.staff-role.executive {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.staff-role.manager {
    background: linear-gradient(135deg, #fca5a5, #f87171);
}

.staff-role.sr-admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.staff-role.admin {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.staff-role.sr-mod {
    background: linear-gradient(135deg, #d8b4fe, #c084fc);
}

.staff-role.mod {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.staff-role.helper {
    background: linear-gradient(135deg, #fde047, #facc15);
    color: #713f12;
}

.announcements-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.announcement-card:hover {
    border-color: var(--mc-purple);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.announcement-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.announcement-card:hover .announcement-banner {
    transform: scale(1.05);
}

.announcement-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.announcement-header {
    margin-bottom: 15px;
}

.announcement-title {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: var(--mc-blue-light);
    margin-bottom: 10px;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-author img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    border-radius: 3px;
}

.announcement-content {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.9rem;
}



.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--mc-blue-light);
    text-shadow: 2px 2px 0 var(--mc-blue-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--mc-blue);
}

.about-content {
    background: var(--mc-card);
    border: 2px solid var(--mc-border);
    border-radius: 8px;
    padding: 25px 30px;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* How To Start Guide Section */
.guide-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.guide-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    margin-top: -15px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
}

.guide-steps::before {
    content: '';
    position: absolute;
    top: 95px;
    left: 12.5%;
    width: 75%;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(59, 130, 246, 0.15),
            rgba(139, 92, 246, 0.15),
            rgba(34, 211, 238, 0.15),
            rgba(34, 197, 94, 0.15));
    z-index: 0;
    border-radius: 4px;
}

.guide-steps::after {
    content: '';
    position: absolute;
    top: 93px;
    left: 12.5%;
    width: 75%;
    height: 8px;
    background: linear-gradient(90deg,
            #3b82f6,
            #8b5cf6,
            #22d3ee,
            #22c55e,
            #3b82f6);
    background-size: 200% 100%;
    z-index: 0;
    border-radius: 6px;
    animation: flowLine 2.5s linear infinite;
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
}

@keyframes flowLine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.guide-step {
    background: #555555;
    border: 6px solid;
    border-color: #6a6a6a #3a3a3a #3a3a3a #6a6a6a;
    border-radius: 0;
    padding: 25px 18px;
    text-align: center;
    position: relative;
    transition: all 0.1s ease-out;
    z-index: 1;
    box-shadow: 6px 6px 0 #222222;
    image-rendering: pixelated;
}

.guide-step:hover {
    cursor: pointer;
    filter: brightness(1.1);
}

.guide-step:active {
    transform: translateY(6px) translateX(6px);
    border-color: #3a3a3a #6a6a6a #6a6a6a #3a3a3a;
    box-shadow: 0px 0px 0 #222222;
    filter: brightness(0.9);
}

.guide-step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: 3px solid #1e40af;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 2px 2px 0 #1e40af;
    text-shadow: 1px 1px 0 #1e40af;
}

.guide-step-icon {
    width: 70px;
    height: 70px;
    margin: 10px auto 18px;
    background: linear-gradient(180deg, #6a6a6a 0%, #555555 100%);
    border: 4px solid #3a3a3a;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        3px 3px 0 #2a2a2a;
}

.guide-step-icon i {
    font-size: 1.8rem;
    color: #22c55e;
    text-shadow: 2px 2px 0 #15803d;
    transition: transform 0.15s ease;
    -webkit-text-fill-color: unset;
    background: none;
}

.guide-step:hover .guide-step-icon {
    transform: scale(1.08);
}

.guide-step:hover .guide-step-icon i {
    transform: scale(1.05);
}

.guide-step:nth-child(1) .guide-step-icon i {
    color: #3b82f6;
    text-shadow: 2px 2px 0 #1e40af;
    background: none;
}

.guide-step:nth-child(2) .guide-step-icon i {
    color: #a855f7;
    text-shadow: 2px 2px 0 #7e22ce;
    background: none;
}

.guide-step:nth-child(3) .guide-step-icon i {
    color: #22d3ee;
    text-shadow: 2px 2px 0 #0891b2;
    background: none;
}

.guide-step:nth-child(4) .guide-step-icon i {
    color: #22c55e;
    text-shadow: 2px 2px 0 #15803d;
    background: none;
}

.guide-step-title {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.guide-step-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.guide-step-desc strong {
    color: var(--mc-blue-light);
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-steps::before {
        display: none;
    }

    .guide-steps::after {
        top: auto;
        bottom: -20px;
        left: 10%;
        width: 80%;
        height: 4px;
    }
}

@media (max-width: 500px) {
    .guide-steps {
        grid-template-columns: 1fr;
    }
}

.latest-news-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all-btn {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--mc-blue-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--mc-border);
    background: var(--mc-card);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.view-all-btn:hover {
    border-color: var(--mc-blue);
    background: rgba(59, 130, 246, 0.1);
}

.latest-news-container {
    display: grid;
    gap: 25px;
}

.latest-news-card {
    display: flex;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s ease-out;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.latest-news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.latest-news-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2), 0 0 60px rgba(59, 130, 246, 0.1);
}

.latest-news-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.3));
}

.latest-news-banner {
    width: 320px;
    min-height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.latest-news-body {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.latest-news-title {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--mc-blue-light);
    margin-bottom: 10px;
}

.latest-news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.latest-news-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.latest-news-author img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    border-radius: 3px;
}

.latest-news-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-news-message {
    text-align: center;
    color: var(--text-gray);
    padding: 30px;
    background: var(--mc-card);
    border: 2px solid var(--mc-border);
    border-radius: 8px;
}

.footer-bottom {
    position: relative;
    border-top: 2px solid var(--mc-border);
    background: var(--mc-darker);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        transition: right 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(80, 80, 90, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1.2rem;
        border-radius: 6px;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar {
        padding: 0 15px;
        height: 72px;
    }

    .nav-logo img {
        height: 48px;
    }

    .hero {
        min-height: 100dvh;
    }

    .hero-content {
        padding: 70px 12px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .hero-logo-container {
        margin-bottom: 0;
    }

    .hero-logo {
        max-width: 70px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .server-info-box {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 0;
    }

    .ip-box,
    .status-box {
        flex: 1;
        max-width: 160px;
        padding: 10px 8px;
    }

    .ip-box::before {
        display: none;
    }

    .ip-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .ip-address {
        font-size: 0.85rem;
    }

    .ip-hint {
        font-size: 0.55rem;
        margin-top: 2px;
    }

    .ip-hint i {
        display: none;
    }

    .status-row {
        margin-bottom: 2px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .status-text {
        font-size: 0.7rem;
    }

    .player-count {
        font-size: 1.1rem;
    }

    .player-label {
        font-size: 0.55rem;
    }

    .gamemodes-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 320px;
        margin-bottom: 0;
    }

    .gamemode-item {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 5px;
        justify-content: center;
    }

    .gamemode-item i {
        font-size: 0.7rem;
    }

    .hero-buttons {
        gap: 8px;
        width: 100%;
        max-width: 320px;
    }

    .mc-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.9rem;
        gap: 6px;
        justify-content: center;
    }

    .footer {
        position: relative;
        padding: 8px;
        font-size: 0.65rem;
        margin-top: auto;
    }

    .page-content {
        padding: 80px 12px 30px;
    }

    .page-header {
        margin-bottom: 25px;
    }

    .page-header h1 {
        font-size: 1.6rem;
        gap: 8px;
    }

    .page-header p {
        font-size: 0.8rem;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .staff-card {
        padding: 15px 8px;
        border-width: 2px;
    }

    .staff-avatar {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }

    .staff-avatar img {
        border-width: 2px;
    }

    .staff-name {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .staff-role {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .announcements-container {
        gap: 15px;
    }

    .announcement-card {
        border-radius: 6px;
    }

    .announcement-banner {
        height: 140px;
    }

    .announcement-body {
        padding: 15px;
    }

    .announcement-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .announcement-meta {
        font-size: 0.75rem;
        gap: 12px;
    }

    .announcement-author img {
        width: 18px;
        height: 18px;
    }

    .announcement-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .hero-logo {
        max-width: 55px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .server-info-box {
        flex-direction: column;
        align-items: center;
    }

    .ip-box,
    .status-box {
        max-width: 200px;
        width: 100%;
    }

    .ip-address {
        font-size: 1rem;
    }

    .player-count {
        font-size: 1.2rem;
    }

    .gamemodes-bar {
        max-width: 280px;
    }

    .gamemode-item {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .mc-btn {
        font-size: 0.85rem;
        padding: 7px 10px;
    }

    .staff-grid {
        gap: 8px;
    }

    .staff-avatar {
        width: 45px;
        height: 45px;
    }

    .staff-name {
        font-size: 0.9rem;
    }

    .staff-role {
        font-size: 0.65rem;
    }

    .announcement-card {
        border-width: 2px;
        border-left-width: 3px;
    }

    .announcement-banner {
        height: 100px;
    }

    .announcement-body {
        padding: 12px;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    /* Apply Section Mobile */
    .apply-section {
        padding: 40px 15px;
    }

    .apply-container {
        padding: 25px 20px;
    }

    .apply-icon {
        font-size: 3rem;
    }

    .apply-title {
        font-size: 1.5rem;
    }

    .apply-text {
        font-size: 0.9rem;
    }

    .mc-btn-apply {
        font-size: 1rem;
        padding: 12px 25px;
    }

    /* Tooltip Mobile - Hide on touch */
    .gamemode-item[data-tooltip]::after {
        display: none;
    }
}

.latest-news-section,
.about-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--mc-blue-light);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--mc-blue);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-all-btn {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid var(--mc-border);
    border-radius: 20px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.view-all-btn:hover {
    color: var(--mc-blue-light);
    border-color: var(--mc-blue);
    background: rgba(59, 130, 246, 0.1);
}

.about-content {
    background: var(--mc-card);
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 30px;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Enhanced Announcement Views */
.announcement-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
    font-size: 0.8rem;
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transition: background 0.15s ease;
}

.announcement-views i {
    color: var(--mc-blue-light);
    font-size: 0.75rem;
}

/* Enhanced Latest News Section */
.latest-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.latest-news-card {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.latest-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mc-blue), var(--mc-blue-light), var(--mc-blue));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.latest-news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.1);
}

.latest-news-card:hover::before {
    opacity: 1;
}

.latest-news-card.featured {
    border-color: rgba(251, 146, 60, 0.3);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.05), rgba(15, 23, 42, 0.7));
}

.latest-news-card.featured::before {
    background: linear-gradient(90deg, #fb923c, #f97316, #fb923c);
    opacity: 1;
}

.latest-news-card.featured:hover {
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(251, 146, 60, 0.15);
}

.latest-news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.latest-news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.latest-news-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-news-card:hover .latest-news-banner {
    transform: scale(1.05);
}

.latest-news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.latest-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 1px;
}

.latest-news-card.featured .latest-news-badge {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.3), rgba(251, 146, 60, 0.1));
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.latest-news-card.featured .latest-news-badge i {
    color: #fb923c;
}

.latest-news-card:not(.featured) .latest-news-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--mc-blue-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.latest-news-title {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.latest-news-card:hover .latest-news-title {
    color: var(--mc-blue-light);
}

.latest-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.latest-news-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.latest-news-author img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    border-radius: 3px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.latest-news-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--mc-blue-light);
    font-weight: 500;
}

.latest-news-views i {
    font-size: 0.75rem;
}

.latest-news-excerpt {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Enhanced Announcement Cards */
.announcement-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--mc-border);
    border-left: 4px solid var(--mc-blue);
    border-radius: 12px;
    transition: all 0.25s ease;
    overflow: hidden;
    position: relative;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.announcement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.1);
}

.announcement-card:hover::before {
    opacity: 1;
}

.announcement-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-banner {
    transform: scale(1.03);
}

.announcement-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.announcement-header {
    margin-bottom: 15px;
}

.announcement-title {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: var(--mc-blue-light);
    margin-bottom: 12px;
    transition: color 0.15s ease;
}

.announcement-card:hover .announcement-title {
    color: var(--text-white);
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-author img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.announcement-content {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Mobile Responsive for Enhanced News */
@media (max-width: 768px) {
    .latest-news-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .latest-news-image {
        height: 140px;
    }

    .latest-news-body {
        padding: 15px;
    }

    .latest-news-title {
        font-size: 1.2rem;
    }

    .latest-news-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .latest-news-meta {
        gap: 10px;
        font-size: 0.75rem;
    }

    .announcement-views,
    .latest-news-views {
        font-size: 0.7rem;
    }
}

/* Social Links in Footer */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Social Links */
@media (max-width: 768px) {
    .social-links {
        gap: 15px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .social-links {
        gap: 10px;
        margin-bottom: 10px;
    }

    .social-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

.footer {
    background: #111;
    color: #fff;
    padding: 40px 0 0 0;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-social-download {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-social-block {
    min-width: 220px;
}

.footer-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    text-align: center;
}

.footer-download-block {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    text-align: center;
    width: 100%;
}

.footer-download-links {
    display: flex;
    gap: 16px;
}

.download-img {
    height: 48px;
    width: auto;
    display: block;
}

.footer .footer-copyright {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin: 32px 0 0 0;
    padding-bottom: 18px;
}

.footer-ip-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    padding: 7px 14px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 1rem;
    user-select: all;
}

.footer-ip-box:hover {
    background: rgba(255, 255, 255, 0.15);
}

.footer-ip-label {
    color: #fff;
    font-weight: 600;
    margin-right: 2px;
}

.footer-ip-address {
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.footer-ip-copy {
    color: #fff;
    opacity: 0.7;
    font-size: 1em;
    margin-left: 2px;
    transition: opacity 0.2s;
}

.footer-ip-box:hover .footer-ip-copy {
    opacity: 1;
}

@media (max-width: 958px) {
    .footer-main {
        padding: 0 12px;
    }

    .footer-social-download {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 0 4vw;
    }

    .footer-label {
        font-size: 0.98rem;
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
    }

    .footer-social-download {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 18px;
    }

    .footer-social-block,
    .footer-download-block {
        align-items: center !important;
        justify-content: center !important;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .social-links {
        justify-content: center;
        width: 100%;
    }

    .footer-download-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .footer-ip-box {
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
        width: 100%;
        max-width: 260px;
    }

    .download-img {
        height: 38px;
    }
}

/* ========================================
   Page Entrance Animations
   ======================================== */
@keyframes pageSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Page Header Animation */
.page-content .page-header {
    animation: pageSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staff Grid Animation */
.staff-grid {
    animation: pageFadeIn 0.4s ease-out 0.2s forwards;
    opacity: 0;
}

.staff-grid .staff-card {
    animation: staggerFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.staff-grid .staff-card:nth-child(1) {
    animation-delay: 0.1s;
}

.staff-grid .staff-card:nth-child(2) {
    animation-delay: 0.15s;
}

.staff-grid .staff-card:nth-child(3) {
    animation-delay: 0.2s;
}

.staff-grid .staff-card:nth-child(4) {
    animation-delay: 0.25s;
}

.staff-grid .staff-card:nth-child(5) {
    animation-delay: 0.3s;
}

.staff-grid .staff-card:nth-child(6) {
    animation-delay: 0.35s;
}

.staff-grid .staff-card:nth-child(7) {
    animation-delay: 0.4s;
}

.staff-grid .staff-card:nth-child(8) {
    animation-delay: 0.45s;
}

.staff-grid .staff-card:nth-child(9) {
    animation-delay: 0.5s;
}

.staff-grid .staff-card:nth-child(10) {
    animation-delay: 0.55s;
}

/* Announcements Animation */
.announcements-container {
    animation: pageFadeIn 0.4s ease-out 0.2s forwards;
    opacity: 0;
}

.announcements-container .announcement-card {
    animation: staggerFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.announcements-container .announcement-card:nth-child(1) {
    animation-delay: 0.15s;
}

.announcements-container .announcement-card:nth-child(2) {
    animation-delay: 0.25s;
}

.announcements-container .announcement-card:nth-child(3) {
    animation-delay: 0.35s;
}

.announcements-container .announcement-card:nth-child(4) {
    animation-delay: 0.45s;
}

.announcements-container .announcement-card:nth-child(5) {
    animation-delay: 0.55s;
}

/* Rules Container Animation */
.rules-container {
    animation: pageFadeIn 0.4s ease-out 0.2s forwards;
    opacity: 0;
}

.rules-container .rule-item {
    animation: staggerFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.rules-container .rule-item:nth-child(1) {
    animation-delay: 0.1s;
}

.rules-container .rule-item:nth-child(2) {
    animation-delay: 0.15s;
}

.rules-container .rule-item:nth-child(3) {
    animation-delay: 0.2s;
}

.rules-container .rule-item:nth-child(4) {
    animation-delay: 0.25s;
}

.rules-container .rule-item:nth-child(5) {
    animation-delay: 0.3s;
}

.rules-container .rule-item:nth-child(6) {
    animation-delay: 0.35s;
}

.rules-container .rule-item:nth-child(7) {
    animation-delay: 0.4s;
}

.rules-container .rule-item:nth-child(8) {
    animation-delay: 0.45s;
}

.rules-container .rule-item:nth-child(9) {
    animation-delay: 0.5s;
}

.rules-container .rule-item:nth-child(10) {
    animation-delay: 0.55s;
}


/* ========================================
   Apply for Staff Section
   ======================================== */
.apply-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    animation: pageFadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.apply-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 30px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.apply-icon {
    font-size: 3.5rem;
    color: #5865F2;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(88, 101, 242, 0.4));
}

.apply-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 var(--mc-blue-dark);
}

.apply-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mc-btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    color: white;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: 2px solid #4752C4;
    border-bottom-width: 4px;
    border-radius: 4px;
    box-shadow: 0 4px 0 #3C45A5, 0 8px 20px rgba(88, 101, 242, 0.3);
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mc-btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.mc-btn-apply:hover::before {
    left: 100%;
}

.mc-btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #3C45A5, 0 12px 30px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #6972F5 0%, #5865F2 100%);
}

.mc-btn-apply:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #3C45A5;
    border-bottom-width: 2px;
}

.mc-btn-apply i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.mc-btn-apply:hover i {
    transform: translateX(3px);
}

/* Apply Section Mobile */
@media (max-width: 768px) {
    .apply-section {
        padding: 40px 15px;
    }

    .apply-container {
        padding: 30px 20px;
    }

    .apply-icon {
        font-size: 2.5rem;
    }

    .apply-title {
        font-size: 1.6rem;
    }

    .apply-text {
        font-size: 0.9rem;
    }

    .mc-btn-apply {
        font-size: 1.1rem;
        padding: 12px 24px;
    }
}