/* ============== RESET & GLOBAL ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============== NAVBAR ============== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.25rem;
}

.server-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
    background: rgba(79, 70, 229, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============== MOBILE MENU ============== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    padding: 2rem;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

/* ============== ADMIN SECTION ============== */
.admin-section {
    padding: 4rem 1rem;
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-tertiary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-role {
    margin-bottom: 3rem;
}

.role-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
    display: inline-block;
}

/* Role Colors */
.owner { color: #f87171; border-color: #f87171; }
.developer { color: #34d399; border-color: #34d399; }
.manager { color: #fbbf24; border-color: #fbbf24; }
.sr-mod { color: #8b5cf6; border-color: #8b5cf6; }
.mod { color: #60a5fa; border-color: #60a5fa; }
.staff { color: #10b981; border-color: #10b981; }
.builder { color: #f472b6; border-color: #f472b6; }
.helper { color: #f97316; border-color: #f97316; }

.admin-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
}

.admin-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
}

.admin-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.admin-info p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* Avatar Colors */
.admin-avatar.owner { background: linear-gradient(135deg, #f87171, #ef4444); }
.admin-avatar.developer { background: linear-gradient(135deg, #34d399, #10b981); }
.admin-avatar.manager { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.admin-avatar.sr-mod { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.admin-avatar.mod { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.admin-avatar.staff { background: linear-gradient(135deg, #10b981, #059669); }
.admin-avatar.builder { background: linear-gradient(135deg, #f472b6, #ec4899); }
.admin-avatar.helper { background: linear-gradient(135deg, #f97316, #ea580c); }

/* ============== FOOTER ============== */
.footer {
    padding: 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-server-name {
    color: var(--primary-light);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .admin-members {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .role-title {
        font-size: 1.5rem;
    }

    .admin-card {
        padding: 1.25rem;
    }

    .admin-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .admin-info h3 {
        font-size: 1.125rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .server-name {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .mobile-menu {
        width: 100%;
        padding: 1.5rem;
    }

    .mobile-nav-link {
        padding: 0.75rem;
        font-size: 1rem;
    }
}