/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FFF5FB;          /* Warna Utama: Soft Pinkish-White */
    --primary-light: #FFFDFE;    /* Putih hampir pink murni */
    --primary-dark: #F7E7F1;     /* Soft kontras background */
    --brand-soft: #D4A5CA;       /* Pastel Rose-Lavender untuk aksen teks/tombol */
    --brand-dark: #6D4C68;       /* Mauve gelap untuk teks utama (kontras tinggi/mudah dibaca) */
    --secondary: #EAA2C8;        /* Soft Pink Pony */
    --accent: #FDF0CD;           /* Soft Pastel Gold/Yellow */
    --bg-light: #FFF9FC;         /* Background body super soft */
    --bg-dark: #4A3E48;          /* Footer: Abu-abu hangat kecokelatan (tidak kaku hitam) */
    --text-dark: #544452;        /* Teks abu-abu gelap dengan rona mauve */
    --text-light: #FFFFFF;
    --text-muted: #A38FA0;       /* Teks sekunder/keterangan */
    --card-bg: #FFFFFF;
    --border-color: #F2DFEC;     /* Garis tepi tipis yang sangat lembut */
    --shadow: 0 8px 24px rgba(212, 165, 202, 0.12);
    --shadow-hover: 0 12px 30px rgba(212, 165, 202, 0.22);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: url('../images/background.webp');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat; /* Cegah gambar berulang saat zoom out */
    background-size: cover;       /* Paksa gambar selalu menutupi seluruh viewport */
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER (Dengan Title & Description) ===== */

.header {
    background: var(--primary);
    padding: 25px 20px;
    position: relative;   /* BUKAN sticky — tidak ikut turun saat scroll */
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(212, 165, 202, 0.05);
}


.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.header .logo-wrapper {
    display: inline-block;
    margin-bottom: 5px;
}

.header .logo {
    max-height: 70px;
    filter: drop-shadow(0 4px 8px rgba(212, 165, 202, 0.2));
}

.header .site-heading {
    font-size: 10px;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.header .tagline {
    color: var(--brand-soft);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.header .site-description {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 600px;
    margin: 5px auto 0;
    line-height: 1.6;
    font-weight: 400;
}

.header .nav-links {
    display: flex;
    gap: 25px;
    margin-top: 12px;
}

.header .nav-links a {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
}

.header .nav-links a:hover {
    background: var(--primary-dark);
    color: var(--brand-dark);
}

/* ===== SLIDESHOW ===== */
.slideshow-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.slideshow {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.slideshow-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.slideshow-dot.active {
    background: var(--brand-soft);
    border-color: var(--brand-soft);
    transform: scale(1.2);
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-dark);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-arrow:hover {
    background: var(--primary);
    color: var(--brand-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slideshow-arrow.prev { left: 15px; }
.slideshow-arrow.next { right: 15px; }

/* ===== ANTI MENTOK KIRI (GLOBAL) ===== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* cegah geser horizontal */
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== MENU: PAKSA CENTER DI MOBILE & DESKTOP ===== */
.menu-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 !important;
    padding: 0 16px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.menu-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 420px !important;   /* 2 kartu rapi di tengah HP */
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.menu-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 22px;
    border: 1.5px solid var(--border-color, #F2DFEC);
    box-shadow: var(--shadow, 0 8px 24px rgba(212, 165, 202, 0.12));
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.menu-card .icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-card .icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Coming Soon */
.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    z-index: 2;
    pointer-events: none;
    opacity: 60%;
}

/* Coming Soon 
.coming-soon-overlay {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}*/

.coming-soon-text {
    display: inline-block;
    background: #5A4A58;
    color: #fff;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Header tidak ikut scroll */
.header {
    position: relative !important;
    top: auto !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* ===== SHOPS SECTION (RATA TENGAH / CENTERED) ===== */
.shops-section {
    max-width: 900px;
    margin: 10px auto;
    padding: 0 20px;
    text-align: center; /* Judul utama rata tengah */
}

.shops-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: black;
    margin-bottom: 40px;
}

.shops-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-soft);
    margin: 12px auto 0;
    border-radius: 2px;
}

.shop-category {
    margin-bottom: 40px;
}

.shop-category-title {
    font-size: 18px;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
    text-align: center; /* Judul kategori ("Local Game Shop") di tengah */
}

/* KUNCI RATA TENGAH: FLEXBOX */
.shop-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Selalu rata tengah! Mau 1, 2, 3, atau 4 icon */
    gap: 16px;
    max-width: 820px;        /* Pas untuk maksimal 5 icon per baris */
    margin: 0 auto;          /* Container di tengah layar */
}

.shop-item {
    width: 140px;            /* Ukuran kotak toko tetap */
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 15px 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.shop-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
    background: var(--primary);
}

.shop-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #fff;
}

.shop-item .shop-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ===== CONTACT SECTION (Pastel & Clean) ===== */
.contact-section {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 10px;
    margin-top: 10px;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    color: black;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--brand-soft);
    margin: 10px auto 0;
    border-radius: 2px;
}

.contact-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 35px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--text-dark);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-soft);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 165, 202, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: cadetblue;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: cornflowerblue;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 162, 200, 0.4);
}

.btn-submit:disabled {
    background: #e2d1dd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
    display: block;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: #e2d1dd;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}

/* ===== ARTICLES ===== */
.articles-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.article-card .thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card .card-body {
    padding: 22px;
}

.article-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card .card-date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-detail {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-detail h1 {
    font-size: 30px;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.article-detail .meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 30px;
}

.article-detail .content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-detail .content img {
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

/* ===== RESPONSIVE MENU ===== */
@media (max-width: 768px) {
    .menu-section {
        max-width: 420px;
        padding: 0 16px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom */
        gap: 14px;
    }

    .menu-card {
        max-width: 180px;
        padding: 12px;
        border-radius: 22px;
    }

    .menu-card .icon {
        max-height: 140px;
        border-radius: 14px;
        align-items: center;       /* Center Vertikal */
        justify-content: center;    /* Center Horizontal */
    }

    .coming-soon-text {
        font-size: 11px;
        padding: 6px 16px;
    }
}

    .menu-section {
        max-width: 100%;
        padding: 0 14px;
    }

    .menu-grid {
        max-width: 720px;
        grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom, JANGAN 1 */
        gap: 12px;
    }

    .menu-card {
        padding: 10px;
        border-radius: 20px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 22px;
    border: 0px solid var(--border-color, #F2DFEC);
    box-shadow: var(--shadow, 0 8px 24px rgba(212, 165, 202, 0.12));
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
    .shop-item {
    width: 120px;
    }
    
    .shop-item .shop-name {
    font-size: 10px;
    }
    
    .coming-soon-text {
        font-size: 10px;
        padding: 5px 12px;
        letter-spacing: 1px;
    }
    
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-dark);
    border: 1px solid var(--border-color);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MODAL VERIFIKASI ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(74, 62, 72, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #F2DFEC;
    box-shadow: 0 20px 50px rgba(109, 76, 104, 0.2);
    max-width: 420px;
    width: 100%;
    padding: 32px 28px 28px;
    text-align: center;
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #A38FA0;
    cursor: pointer;
}

.modal-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.modal-box h3 {
    color: #6D4C68;
    font-size: 20px;
    margin-bottom: 10px;
}

.modal-box p {
    color: #544452;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-email {
    display: inline-block;
    background: #FFF5FB;
    border: 1px solid #F2DFEC;
    color: #6D4C68;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px !important;
    margin: 8px 0 12px !important;
    word-break: break-all;
}

.modal-hint {
    font-size: 12px !important;
    color: #A38FA0 !important;
    margin-bottom: 18px !important;
}

.modal-ok {
    width: 100%;
}

