/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Rajdhani:wght@500;600;700&family=Creepster&display=swap');

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

/* Animated Background */
@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 51, 51, 1)); }
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 25%, #0a0a0a 50%, #050a1a 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: bgShift 15s ease infinite;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 51, 51, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 51, 51, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 51, 51, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

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

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

/* Epic Header */
header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 5, 5, 0.9) 100%);
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, transparent, #ff3333, transparent) 1;
    box-shadow: 0 10px 40px rgba(255, 51, 51, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 51, 51, 0.03) 20px, rgba(255, 51, 51, 0.03) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255, 51, 51, 0.02) 20px, rgba(255, 51, 51, 0.02) 40px);
    animation: bgShift 30s linear infinite;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    background: linear-gradient(180deg, #ff5555 0%, #ff3333 50%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 12px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    animation: glow 3s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(255, 51, 51, 0.8);
}

.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #999;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    padding: 40px 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* Epic Server Cards */
.server-card {
    background: linear-gradient(135deg, rgba(30, 15, 15, 0.8) 0%, rgba(15, 15, 30, 0.8) 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInUp 0.6s ease-out;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1) 0%, transparent 50%, rgba(255, 51, 51, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.server-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff3333, #cc0000, #ff3333);
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: bgShift 3s ease infinite;
}

.server-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(255, 51, 51, 0.4),
        0 0 80px rgba(255, 51, 51, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.server-card:hover::before {
    opacity: 1;
}

.server-card:hover::after {
    opacity: 1;
}

.server-card-content {
    padding: 35px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(20, 10, 10, 0.6) 0%, rgba(10, 10, 20, 0.6) 100%);
    backdrop-filter: blur(10px);
}

/* Server Header with Dramatic Effect */
.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.5), transparent) 1;
    position: relative;
}

.server-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff3333, transparent);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.8);
}

.server-name {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
}

.server-name.days-font {
    font-family: 'Creepster', cursive;
    letter-spacing: 4px;
    color: #ff3333;
    text-shadow:
        0 0 20px rgba(255, 51, 51, 0.8),
        0 0 40px rgba(255, 51, 51, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite;
}

.server-game {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Epic Status Badge */
.status-badge {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.online {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 204, 109, 0.4));
    color: #00ff88;
    border: 2px solid #00ff88;
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
}

.status-badge.coming-soon {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.3), rgba(221, 136, 0, 0.4));
    color: #ffaa00;
    border: 2px solid #ffaa00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
}

.server-description {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Epic Action Buttons */
.server-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(20, 5, 5, 0.3));
    border-radius: 15px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #999;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.action-btn svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px currentColor);
}

.action-btn::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.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.action-btn:hover svg {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px currentColor);
}

.action-btn.vote {
    color: #ff5555;
    border-color: rgba(255, 85, 85, 0.4);
}

.action-btn.vote:hover {
    background: linear-gradient(135deg, rgba(255, 85, 85, 0.25), rgba(255, 85, 85, 0.15));
    border-color: #ff5555;
    box-shadow: 0 5px 25px rgba(255, 85, 85, 0.4);
    color: #fff;
}

.action-btn.shop {
    color: #ffbb22;
    border-color: rgba(255, 187, 34, 0.4);
}

.action-btn.shop:hover {
    background: linear-gradient(135deg, rgba(255, 187, 34, 0.25), rgba(255, 187, 34, 0.15));
    border-color: #ffbb22;
    box-shadow: 0 5px 25px rgba(255, 187, 34, 0.4);
    color: #fff;
}

.action-btn.map {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.4);
}

.action-btn.map:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.15));
    border-color: #00ff88;
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.4);
    color: #fff;
}

.action-btn.leaderboard {
    color: #6eb5ff;
    border-color: rgba(110, 181, 255, 0.4);
}

.action-btn.leaderboard:hover {
    background: linear-gradient(135deg, rgba(110, 181, 255, 0.25), rgba(110, 181, 255, 0.15));
    border-color: #6eb5ff;
    box-shadow: 0 5px 25px rgba(110, 181, 255, 0.4);
    color: #fff;
}

.action-btn.vip {
    color: #bb88ff;
    border-color: rgba(187, 136, 255, 0.4);
}

.action-btn.vip:hover {
    background: linear-gradient(135deg, rgba(187, 136, 255, 0.25), rgba(187, 136, 255, 0.15));
    border-color: #bb88ff;
    box-shadow: 0 5px 25px rgba(187, 136, 255, 0.4);
    color: #fff;
}

.action-btn.become {
    color: #fff200;
    border-color: rgba(255, 242, 0, 0.6);
    text-shadow: 0 0 12px rgba(255, 242, 0, 0.6);
}

.action-btn.become:hover {
    background: linear-gradient(135deg, rgba(255, 242, 0, 0.35), rgba(255, 242, 0, 0.2));
    border-color: #fff200;
    box-shadow: 0 5px 28px rgba(255, 242, 0, 0.7);
    color: #fff200;
}

/* Epic Primary Button */
.btn {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #ff3333;
    border-radius: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow:
        0 8px 25px rgba(255, 51, 51, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #ff5555 0%, #ff3333 100%);
    transform: translateY(-3px);
    box-shadow:
        0 12px 35px rgba(255, 51, 51, 0.7),
        0 0 50px rgba(255, 51, 51, 0.3);
}

/* Epic Sidebar */
.sidebar {
    background: linear-gradient(135deg, rgba(30, 15, 15, 0.8) 0%, rgba(15, 15, 30, 0.8) 100%);
    border-radius: 20px;
    padding: 35px 30px;
    position: sticky;
    top: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 51, 51, 0.3);
}

.sidebar h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #ff3333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.8);
    padding-bottom: 15px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #ff3333, transparent) 1;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #ddd;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.sidebar-btn::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.5s ease;
}

.sidebar-btn:hover::before {
    left: 100%;
}

.sidebar-btn:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.sidebar-btn svg {
    width: 28px;
    height: 28px;
}

.sidebar-btn img {
    height: 32px;
    width: auto;
}

.sidebar-btn.discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-color: #5865F2;
    color: #fff;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

.sidebar-btn.discord:hover {
    background: linear-gradient(135deg, #6875f5 0%, #5865F2 100%);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.7);
}

.sidebar-btn.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    border-color: #FF0000;
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.sidebar-btn.youtube:hover {
    background: linear-gradient(135deg, #FF1a1a 0%, #FF0000 100%);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.7);
}

.sidebar-btn.patreon {
    background: linear-gradient(135deg, #fff200 0%, #ffd000 100%);
    border-color: #fff200;
    color: #1a1408;
    box-shadow: 0 8px 28px rgba(255, 242, 0, 0.6);
}

.sidebar-btn.patreon:hover {
    background: linear-gradient(135deg, #ffff4d 0%, #fff200 100%);
    box-shadow: 0 12px 38px rgba(255, 242, 0, 0.85);
    color: #1a1408;
}

/* Footer */
footer {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.5), transparent) 1;
    margin-top: 60px;
}

footer p {
    color: #666;
    font-size: 1.05rem;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

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

    .server-card-content {
        padding: 25px;
    }
}
