/* EPIC RedM Server - Shared Styles */

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

:root {
    --primary-red: #e53e3e;
    --primary-red-dark: #c53030;
    --primary-red-light: #fc8181;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-light: #e2e8f0;
    --text-gray: #a0aec0;
    --card-bg: #2d2d2d;
    --border-color: #3d3d3d;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-red: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    --gradient-red-glow: linear-gradient(135deg, rgba(229, 62, 62, 0.3) 0%, rgba(197, 48, 48, 0.3) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-red: 0 10px 30px rgba(229, 62, 62, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--darker-bg);
    background-image: url('https://i.imgur.com/9BlqYLc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 2px solid rgba(229, 62, 62, 0.2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

.nav-container .logo {
    flex-shrink: 0;
}

.nav-container .nav-links {
    flex: 1;
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text .epic {
    color: var(--primary-red);
}

.logo-text .redm {
    color: var(--primary-red);
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--primary-red);
    background: rgba(229, 62, 62, 0.1);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--primary-red);
    font-weight: 600;
}

.nav-links a.active {
    background: rgba(229, 62, 62, 0.15);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
    animation: fadeIn 0.8s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 80px;
}

.section:last-child {
    margin-bottom: 40px;
}

/* Cards */
.card {
    background: rgba(45, 45, 45, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-red);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(229, 62, 62, 0.2), var(--shadow-red);
    border-color: rgba(229, 62, 62, 0.3);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-red), 0 0 20px rgba(229, 62, 62, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(229, 62, 62, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3a45b8 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.5);
}

.discord-btn-nav {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
    margin-left: 10px;
    white-space: nowrap;
}

.discord-btn-nav:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3a45b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.admin-panel-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.admin-panel-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Typography */
h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 40px;
    background: rgba(45, 45, 45, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    margin-bottom: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-red-glow);
    opacity: 0.15;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(229, 62, 62, 0.3);
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
}

.grid > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.grid > *:nth-child(1) { animation-delay: 0.1s; }
.grid > *:nth-child(2) { animation-delay: 0.2s; }
.grid > *:nth-child(3) { animation-delay: 0.3s; }
.grid > *:nth-child(4) { animation-delay: 0.4s; }
.grid > *:nth-child(5) { animation-delay: 0.5s; }
.grid > *:nth-child(6) { animation-delay: 0.6s; }

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.status-online {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(72, 187, 120, 0.4);
}

.status-online:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.5);
}

.status-offline {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(245, 101, 101, 0.4);
}

.status-maintenance {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(237, 137, 54, 0.4);
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-red);
    border-right-color: var(--primary-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 30px auto;
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-top: 2px solid rgba(229, 62, 62, 0.2);
    padding: 50px 20px;
    margin-top: 100px;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 0 0 3px 3px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.footer-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.footer-image img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-top: 2px solid var(--border-color);
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-separator {
        display: none;
    }
    
    .discord-btn-nav {
        text-align: center;
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
    }

    .admin-panel-btn {
        text-align: center;
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-container {
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        padding: 25px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    main {
        padding: 40px 15px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(229, 62, 62, 0.3);
    color: var(--text-light);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-red);
    border-radius: 6px;
    border: 2px solid var(--darker-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

