/* 1. CONFIG VARIABLES (Mudah ganti warna tema di sini) */
:root {
    --primary-color: #00a2ff;
    --primary-dark: #0081cc;
    --bg-dark: #0b0e14;
    --bg-card: #161b22;
    --text-white: #ffffff;
    --text-grey: #8b9bb4;
    --font-main: 'Montserrat', sans-serif;
    --gold-color: #e0b16a;
    --stat-bg: #222831;
    --text-muted: #94a3b8;
}

/* 2. GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 4. HERO SECTION */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom, rgba(11,14,20,0.3), var(--bg-dark)), 
                url('/assets/images/web_bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
    z-index: 2;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 5.5rem); 
    font-weight: 900;
    line-height: 1.1;
    margin: 20px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    word-wrap: break-word;
}

.server-status {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.dot {
    height: 8px; width: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse 2s infinite;
}

.ip-wrapper { margin-top: 30px; }

.ip-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    max-width: 100%;
}

.ip-box:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.ip-wrapper small {
    display: block;
    margin-top: 10px;
    color: var(--text-grey);
    font-size: 0.8rem;
}

/* 5. SERVERS SECTION CUSTOM */
.servers-section {
    padding: 80px 8%;
    background: var(--bg-dark);
    text-align: center;
}

.server-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.server-item {
    background: var(--bg-card);
    padding: 20px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.server-item:hover {
    background: #1c222b;
}

.server-item.active {
    background: var(--gold-color);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(224, 177, 106, 0.2);
}

.server-item.active span {
    color: #000;
    font-weight: 800;
}

.server-mini-icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    image-rendering: pixelated; /* Penting untuk icon Minecraft */
}

.server-item span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-grey);
}

/* Detail View Styling */
.server-detail-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Transition dasar untuk perubahan tinggi/opacity */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.detail-big-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 25px;
    image-rendering: pixelated;
}

.animate-detail {
    animation: fadeInUp 0.6s forwards;
}

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

#detail-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

#detail-desc {
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

#detail-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

#detail-features li::before {
    content: "•";
    color: var(--gold-color);
    margin-right: 10px;
}


/* 5. CARDS (Grid System) */
.modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 8%;
    background: var(--bg-dark);
}

.card {
    background: var(--bg-card);
    padding: 50px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card p { color: var(--text-grey); }

/* STATS SECTION STYLING */
.stats {
    background-color: #1c222b;
    padding: 80px 8%;
    text-align: center;
}

.stats-header {
    color: var(--gold-color);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: capitalize;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom sesuai gambar */
    gap: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Desktop: 2 kolom tetap dipertahankan agar mirip gambar, 
   tapi bisa diubah jadi 3 jika ingin lebih lebar */
@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: white;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Tombol View More Stats */
.btn-more-stats {
    margin-top: 50px;
    background-color: var(--gold-color);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-more-stats:hover {
    background-color: #c99a52;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 177, 106, 0.3);
}

/* Responsif Mobile */
@media (max-width: 480px) {
    .stat-item h3 { font-size: 1.4rem; }
    .stat-item i { font-size: 2rem; }
}


/* PARTNERS / POWERED BY SECTION */
.partners-section {
    background-color: var(--bg-dark);
    padding: 60px 8% 80px;
    text-align: center;
}

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

.partners-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.partners-line {
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    margin: 0 auto 50px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 60px; /* Jarak antar logo */
}

/* Container Grid */
.partners-link-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom */
  gap: 30px; /* Jarak antar item */
  justify-items: center; /* Tengahkan item horizontal */
  align-items: center; /* Tengahkan item vertikal */
  max-width: 600px; /* Atur sesuai kebutuhan */
  margin: 0 auto;
}

/* Kode Anda (tetap sama) */
.partner-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(1) brightness(0.8);
}

.partner-link:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.1);
}

.partner-link img {
  height: 35px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block; /* Hapus spasi bawah */
}

/* POLA KHUSUS: Baris ke-2 (gambar 4,5,6) urutan terbalik */
.partner-link:nth-child(3n+4) { grid-column: 3; } /* Gambar ke-4 di kolom 3 */
.partner-link:nth-child(3n+5) { grid-column: 2; } /* Gambar ke-5 di kolom 2 */
.partner-link:nth-child(3n+6) { grid-column: 1; } /* Gambar ke-6 di kolom 1 */

/* Untuk baris ke-4 (gambar 10,11,12) dan seterusnya dengan pola sama */
.partner-link:nth-child(6n+10) { grid-column: 3; }
.partner-link:nth-child(6n+11) { grid-column: 2; }
.partner-link:nth-child(6n+12) { grid-column: 1; }

/* Responsif Mobile untuk Partner */
@media (max-width: 768px) {
    .partners-grid {
        gap: 30px 40px;
    }
    .partner-link img {
        height: 25px;
    }
}

/* DONATORS SECTION STYLING */
.donators-section {
    background-color: var(--bg-dark);
    padding: 40px 8% 80px; /* Padding atas lebih kecil karena menyambung dari Powered By */
    text-align: center;
}

.donators-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.donator-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s ease;
    min-width: 220px;
}

.donator-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Spesial untuk Top Donatur */
.donator-card.premium {
    border: 1px solid var(--gold-color);
    background: linear-gradient(145deg, var(--bg-card), #1c222b);
}

.donator-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    image-rendering: pixelated; /* Agar gaya Minecraft tetap terasa */
    border: 2px solid rgba(255,255,255,0.1);
}

.donator-info {
    text-align: left;
}

.donator-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
}

.donator-rank {
    display: block;
    font-size: 0.75rem;
    color: var(--gold-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donator-call-to-action {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.donator-call-to-action a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.donator-call-to-action a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Responsif Mobile */
@media (max-width: 480px) {
    .donator-card {
        width: 100%; /* Full width di HP agar rapi */
    }
}



/* 6. FOOTER (Sesuai Image) */
.footer {
    background-color: #12161f; /* Sedikit lebih terang dari bg body */
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 15px;
    opacity: 0.8;
    filter: grayscale(0.5); /* Membuat footer tetap terlihat clean/minimalis */
    transition: 0.3s;
}

.footer-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.copyright {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-desc, .disclaimer {
    color: #64748b; /* Warna abu-abu redup */
    font-size: 0.9rem;
    line-height: 1.6;
}

.highlight-text {
    color: #94a3b8;
    font-weight: 600;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons a {
    color: #475569;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.mobile-only {
    display: none;
}

.mobile-onlys {
    display: none;
}

/* Register Style */
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 7. RESPONSIVE (Mobile) */
@media (max-width: 768px) {


    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .mobile-onlys {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .mobile-onlys a {
        color: var(--gold-color) !important;
        font-weight: bold;
        border: 1px solid var(--gold-color);
        padding: 10px 20px;
        border-radius: 5px;
        display: inline-block;
        margin-top: 10px;
    }
}

/* ANIMATIONS */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

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


@media (max-width: 480px) {
    .ip-box {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .server-status {
        padding: 6px 15px;
        font-size: 0.75rem;
    }
}

