/* ==========================================================================
   ZORA STYLESHEET - GROWTOPIA PRIVATE SERVER THEME (V7 MINIMALIST CLEAN)
   ========================================================================== */

/* --- ROOT VARIABLES (PALET WARNA GELAS & MODERN MINIMALIS) --- */
:root {
    --bg-main: #06110a;
    --bg-card: rgba(10, 38, 22, 0.65);
    --border-color: rgba(34, 197, 94, 0.25);
    --border-gold: rgba(245, 158, 11, 0.5);
    --accent-gold: #f59e0b;
    --accent-green: #22c55e;
    --text-main: #f8fafc;
    --text-muted: #bbf7d0;
}

/* --- RESET & DASAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* --- BACKGROUND GT WORLD --- */
.world-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 100vh;
    background-color: var(--bg-main);
    background-image: url('../images/latarbelakang.png');
    background-size: 1600px;
    background-repeat: repeat-x;
    background-position: bottom;
    z-index: -2;
    opacity: 0.15;
}

/* --- EFEK PARTIKEL --- */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gt-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatGems linear infinite;
}

@keyframes floatGems {
    0% { transform: translateY(100vh); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* --- WRAPPER UTAMA --- */
.main-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 15px 80px 15px;
    position: relative;
    z-index: 10;
}

/* --- NAVBAR FLOATING --- */
.navbar-floating {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 30, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    width: 90%;
    max-width: 1100px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links li a:hover, 
.nav-links li a.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.btn-shop {
    background: var(--accent-gold);
    color: #06110a;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-shop:hover {
    opacity: 0.9;
}

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 160px;
    text-align: center;
}

.main-logo {
    width: 380px;
    max-width: 100%;
    margin-bottom: -30px;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
}

.glass-box {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px 40px 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
    margin-bottom: 60px;
}

.glass-box p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.glass-box strong {
    color: var(--accent-gold);
}

/* --- TOMBOL AKSI UTAMA --- */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-play {
    background: var(--accent-green);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-play:hover {
    opacity: 0.9;
}

.btn-discord {
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-discord:hover {
    opacity: 0.9;
}

/* --- ANIMASI SCROLL --- */
.scroll-down {
    margin: 30px 0 40px 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- KONTEN & SECTIONS --- */
.content-section {
    padding: 60px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--text-main);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- KARTU UTAMA (CARD) --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-bottom: 40px;
}

.card h3, 
.card h4 {
    color: var(--text-main);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- HOW TO PLAY HORIZONTAL SCROLL (DIUBAH KE SAMPING) --- */
.tutorial-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 24px !important;
    padding: 10px 5px 25px 5px !important;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green) var(--bg-card);
}

.tutorial-grid::-webkit-scrollbar {
    height: 8px;
}

.tutorial-grid::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.tutorial-grid::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

.tutorial-grid .card {
    flex: 0 0 380px !important;
    max-width: 380px !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
}

/* Platform Content inside card */
.tutorial-grid ol {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.8;
}

.tutorial-grid ol li {
    margin-bottom: 12px;
}

.tutorial-grid code {
    background: rgba(6, 17, 10, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-green);
    font-family: monospace;
    font-size: 13.5px;
    border: 1px solid var(--border-color);
}

/* Sub Host Card Styling */
.sub-host-card {
    background: rgba(6, 17, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sub-host-card code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 13.5px;
    word-break: break-all;
    color: var(--text-main);
}

.btn-copy {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-copy.copied {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.features-grid .card h4 {
    border-bottom: none;
    margin-bottom: 10px;
    font-size: 17px;
}

.features-grid p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About Section Card */
.about-card {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.about-img {
    max-width: 360px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h3 {
    border: none;
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 12px;
}

.about-text p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.7;
}

/* Community Section Card */
.community-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.community-info {
    flex: 1;
    min-width: 280px;
}

.community-info p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.discord-widget-placeholder {
    flex: 1;
    min-width: 280px;
    background: rgba(6, 17, 10, 0.8);
    color: var(--text-muted);
    height: 240px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13.5px;
}

/* --- NEW PLAYER REWARDS GRID (RAPAT & SIMETRIS) --- */
.teams-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 1150px;
    margin: 0 auto;
}

.team-card {
    flex: 0 1 calc(20% - 15px);
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 24px 15px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
}

.team-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 14px;
    filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.4));
}

.team-card h4 {
    border: none;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    color: var(--text-main);
    line-height: 1.4;
}

.role {
    display: inline-block;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card p {
    font-style: italic;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- FOOTER / CREDIT SECTION STYLING --- */
footer {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

footer img {
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.08) rotate(-3deg);
}

/* --- MEDIA QUERIES (RESPONSIF HP) --- */
@media (max-width: 768px) {
    .main-wrapper {
        width: 100%;
        padding: 0 10px;
    }

    .navbar-floating {
        top: 10px;
        padding: 8px 14px;
        flex-direction: column;
        gap: 10px;
        width: 95%;
        border-radius: 10px;
    }

    .nav-links {
        gap: 4px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links li a {
        padding: 5px 10px;
        font-size: 11px;
    }

    .hero-section {
        padding-top: 140px;
    }

    .main-logo {
        width: 260px;
    }

    .glass-box {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .card {
        padding: 24px 18px;
        margin-bottom: 30px;
    }

    /* Penyesuaian khusus HP untuk Tutorial Horizontal */
    .tutorial-grid .card {
        flex: 0 0 85vw !important;
        max-width: 85vw !important;
    }

}