/* ===================================================
   1. GENERAL & VARIABLES (Reset & Global)
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-green: #28a745;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0e0e0e;
    --bg-light: #f4f4f4;
    --shadow: rgba(0, 0, 0, 0.35);
}

body {
    background: #ffffff;
    color: #ffffff;
    overflow-x: hidden;
}

/* Global Button Component */
.btn {
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
}

.btn.primary {
    background: var(--primary-green);
    color: white;
    transition: background 0.3s ease;
}

.btn.primary:hover {
    background: #218838;
}

/* =============================================================
   2. NAVBAR & NAVIGATION
   ============================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
}

.navbar-logo {
    height: 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.navbar-logo img {
    height: 60px;
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 0;
    font-weight: 500;
}

.navbar p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px;
}

/* =============================================================
   3. DROPDOWN (ABOUT)
   ============================================================= */
.dropdown {
    position: relative;
}

.dropbtn {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.dropbtn::after {
    content: "▾";
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(12px);
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6),
                inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.35s ease;
    z-index: 999;
}

.dropdown-content.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-content a:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, #28a745, #00ff99);
    color: #000;
    padding-left: 26px;
}
/* ===================================================
   3. HERO SECTION
   =================================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #0e0e0e;
    border-radius: 0 0 40px 40px;
    padding: 60px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    bottom: 30%;
    left: 10%;
    max-width: 500px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 70px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===================================================
   4. NEWS SECTION
   =================================================== */
.news-title {
    padding: 70px;
    background: #ffffff;
    text-align: center;
}

.news-title h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 10px;
}

.news-title p {
    font-size: 18px;
    color: #666;
}

.cards {
    padding: 10px 8% 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    background: linear-gradient(to bottom, #f4f6fb, #ffffff);
}

.card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px rgba(0,0,0,.15);
    transition: transform .5s ease, box-shadow .5s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0,0,0,.25);
}

.card-image {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.card:hover img {
    transform: scale(1.12);
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.35), transparent);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all .5s ease;
}

.card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}

.card-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 16px;
    opacity: .9;
    line-height: 1.6;
}

/* ===================================================
   5. ABOUT GAME SECTION
   =================================================== */
.about-title {
    padding: 20px;
    background: #ffffff;
    text-align: center;
}

.about-title h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 10px;
}

.about-title p {
    font-size: 18px;
    color: #666;
}

.about-game {
    padding-bottom: 60px;
    background: #ffffff;
    color: #000;
}

.about-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 10%;
}

.about-card {
    padding: 80px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.18);
}

.about-card p {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 22px;
    text-align: justify;
}

.about-card .accent {
    padding-left: 18px;
    border-left: 4px solid #28a745;
    color: #111;
}

.about-action {
    margin-top: 40px;
    text-align: right;
}

/* ===================================================
   6. MERCHANDISE SECTION
   =================================================== */
.section-title {
    padding: 80px;
    background: #ffffff;
    text-align: center;
}

.section-title h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: #666;
}

.section-title--merchandise {
    margin-top: -60px;
}

.card-content .price {
    display: block;
    margin: 8px 0;
    font-weight: 600;
    color: #28a745;
}

/* ===================================================
   7. COMMENT SECTION
   =================================================== */
.comment-section {
    padding: 80px 8%;
    background: #ffffff;
}

.comment-form {
    max-width: 700px;
    margin: 0 auto 60px;
    background: #f4f6fb;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.comment-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #111;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border .3s ease, box-shadow .3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,.15);
}

.comment-form button {
    background: linear-gradient(135deg, #28a745, #00ff99);
    color: #000;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.comment-title {
    text-align: center;
    margin-bottom: 50px;
}

.comment-title h2 {
    font-size: 42px;
    color: #111;
    margin-bottom: 10px;
}

.comment-title p {
    font-size: 16px;
    color: #666;
}

.comment-list {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-card {
    background: #f9f9f9;
    padding: 24px 28px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.comment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.comment-header strong {
    font-size: 16px;
    color: #28a745;
}

.comment-header span {
    font-size: 13px;
    color: #888;
}

.comment-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.comment-card {
    position: relative;
}

.comment-length {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: #aaa;
}

.comment-form {
    position: relative;
}

.comment-form textarea {
    resize: none;
}

.comment-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.char-count {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 12px;
    color: #888;
}


.no-comment {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* ===================================================
   8. FOOTER SECTION
   =================================================== */
.footer-modern {
    background: #3c3f41;
    color: #ddd;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 8%;
    flex-wrap: wrap;
}

.footer-left h4,
.footer-center h4,
.footer-right h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: #bbb;
    margin: 10px 0 20px;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-left .privacy {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
}

.footer-left .privacy:hover {
    color: #fff;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 8px;
}

.footer-center ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-center ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #28a745;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #aaa;
}

.logo-img {
    width: 120px;
    margin-bottom: 10px;
    transition: 0.3s;
}

/* ===================================================
   9. MOBILE SIDEBAR & RESPONSIVE QUERIES
   =================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 5px;
}

@media (max-width: 768px) {
    /* Navbar padding disesuaikan untuk layar kecil */
    .navbar {
        padding: 15px 30px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Modifikasi navigasi utama menjadi sidebar */
    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: rgba(14, 14, 14, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.6);
        overflow-y: auto;
    }

    .navbar nav.active {
        right: 0;
    }

    /* Penyesuaian font dan margin link pada sidebar */
    .navbar nav a, .dropbtn {
        font-size: 20px;
        margin: 15px 0;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    /* Container dropdown di mobile diset 100% */
    .navbar nav .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Dropdown merosot (accordion style) di mobile */
    .dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
        display: none;
        width: 85%;
        margin-top: 5px;
        border-radius: 8px;
        padding: 5px 0;
        opacity: 1;
        pointer-events: auto; /* Memastikan bisa di-klik saat terbuka */
    }
    
    .dropdown-content.active {
        display: flex;
        flex-direction: column;
        animation: fadeIn 0.3s ease-in-out;
    }

    .dropdown-content a {
        font-size: 16px;
        margin: 5px 0;
        padding: 10px;
        border: none !important;
        justify-content: center;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Animasi ikon hamburger menjadi "X" yang presisi */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


    /* Hero & Sections Adjustments */
    .hero-content {
        left: 5%;
        bottom: 20%;
    }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 16px; }

    .news-title h1, .about-title h1, .section-title h1 {
        font-size: 40px;
    }

    .about-card { padding: 35px; }
    .about-action { text-align: left; }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}