/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #121214;
    color: #e1e1e6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

/* Custom Dark Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #121214;
}
::-webkit-scrollbar-thumb {
    background: #29292e;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5865F2;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.text-center { 
    text-align: center; 
}

/* ==========================================================================
   2. GLOBAL NAVIGATION HEADER & DROPDOWN (GLASSMORPHISM)
   ========================================================================== */
.nav-header {
    background-color: rgba(26, 26, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 35px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.5));
}

.dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: rgba(32, 32, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-wrapper:hover {
    border-color: #5865F2;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.2);
}

.dropdown-icon {
    color: #8d8d99;
    margin-right: 8px;
    pointer-events: none;
}

.nav-dropdown {
    background: transparent;
    color: #e1e1e6;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 25px 10px 0;
    cursor: pointer;
    outline: none;
    appearance: none;
}

.dropdown-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    font-size: 0.8rem;
    color: #8d8d99;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   3. HERO SHOWCASE AREA (RADIAL GLOW)
   ========================================================================== */
.hero {
    width: 100%;
    min-height: 45vh;
    background: radial-gradient(circle at top, rgba(88, 101, 242, 0.1) 0%, #161619 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero-logo {
    height: 90px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.server-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.server-title span {
    background: linear-gradient(135deg, #5865F2, #8A94F8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-tagline {
    font-size: 1.2rem;
    color: #a8a8b3;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.5;
}

/* ==========================================================================
   4. LAYOUT CONTAINERS & CENTRAL CARDS
   ========================================================================== */
.content-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.info-card {
    background: linear-gradient(180deg, rgba(26, 26, 30, 0.8) 0%, rgba(22, 22, 25, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
}

.subtitle {
    color: #8d8d99;
    font-size: 1rem;
}

/* ==========================================================================
   5. INTERACTIVE SERVER IP COPY MODULE
   ========================================================================== */
.ip-container {
    background: linear-gradient(145deg, #202024, #1a1a1e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 10px 10px 24px;
    border-radius: 50px; /* Pill shape */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ip-container:hover {
    border-color: #5865F2;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.25);
}

.ip-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #e1e1e6;
}

.copy-btn {
    background-color: #5865F2;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.copy-btn:hover {
    background-color: #4752c4;
    transform: scale(1.05);
}

.join-alert {
    margin-top: 15px;
    color: #04d361;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.join-alert.show { 
    opacity: 1; 
    transform: translateY(0);
}

.status-counter {
    margin-top: 20px;
    font-size: 1rem;
    color: #8d8d99;
    font-weight: 600;
}

/* ==========================================================================
   6. GAMEMODE SHOWCASE GRID (HOMEPAGE)
   ========================================================================== */
.gamemode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.gamemode-card {
    background: linear-gradient(180deg, #202024 0%, #1a1a1e 100%);
    padding: 35px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.4s ease;
}

.gamemode-card:hover {
    transform: translateY(-10px);
    border-color: #5865F2;
    box-shadow: 0 15px 30px rgba(88, 101, 242, 0.15);
}

.gamemode-card i {
    font-size: 2.8rem;
    color: #5865F2;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.3));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gamemode-card:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.6));
}

.gamemode-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
}

.gamemode-card p {
    color: #a8a8b3;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   7. MINECRAFT STAFF GRID LAYOUT
   ========================================================================== */
.staff-group-title {
    font-size: 1.6rem;
    color: #5865F2;
    margin: 35px 0 20px 0;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-left: 5px solid #5865F2;
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(88,101,242,0.1) 0%, transparent 100%);
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 0 4px 4px 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.staff-card {
    background: rgba(32, 32, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: #5865F2;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.1);
}

.staff-avatar {
    width: 72px;
    height: 72px;
    background-color: #161619;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #29292e;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.staff-card:hover .staff-avatar {
    border-color: #5865F2;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated; /* Keeps MC skins sharp */
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.staff-role {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.role-admin { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.role-mod   { background-color: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.role-helper { background-color: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }

/* ==========================================================================
   8. LEGAL TEXT LAYOUT STYLES (TOS/RULES)
   ========================================================================== */
.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.legal-meta {
    font-size: 0.95rem;
    color: #7c7c8a;
    margin-bottom: 35px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid #29292e;
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5865F2;
    margin-bottom: 15px;
}

.legal-section p {
    font-size: 1.05rem;
    color: #c4c4cc;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ==========================================================================
   9. FOOTER STYLES
   ========================================================================== */
footer {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #7c7c8a;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    background-color: #121214;
}

footer a {
    color: #a8a8b3;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #5865F2;
}

/* ==========================================================================
   10. ANIMATIONS & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .server-title { font-size: 2.5rem; }
    .info-card { padding: 25px 20px; }
    .hero { padding: 30px 15px; }
    .ip-container { flex-direction: column; gap: 10px; padding: 15px; border-radius: 12px; }
    .copy-btn { width: 100%; }
}