/* ══════════════════════════════════════════
   home.css — Stylesheet untuk home.blade.php
   Play N Chill Madiun
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Modak&family=Fredoka+One&family=Nunito:wght@400;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple:      #734FFF;
    --purple-btn:  #734FFF;
    --purple-dark: #472CA1;
    --yellow:      #D7E319;
    --orange:      #E65A29;
}

body {
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    background: #472CA1;
}

html {
    overflow-x: hidden;
}

/* ════════════════════════
   NAVBAR
════════════════════════ */
.navbar {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .08);
}

.logo-pill {
    border: 2px solid var(--purple-dark);
    border-radius: 30px;
    padding: 4px 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    text-decoration: none;
}

.logo-pill-top {
    font-family: 'Fredoka One', cursive;
    font-size: .9rem;
    color: var(--purple);
    letter-spacing: .3px;
}

.logo-pill-bot {
    font-family: 'Fredoka One', cursive;
    font-size: .5rem;
    color: var(--purple);
    letter-spacing: 2px;
    margin-top: -1px;
}

.nav-btn-active {
    background: var(--purple-dark) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 22px !important;
    font-weight: 700;
    font-size: .88rem;
}

.navbar-nav .nav-link {
    font-weight: 700;
    color: #333;
    font-size: .9rem;
    padding: 6px 14px !important;
}

.navbar-nav .nav-link:hover {
    color: var(--purple);
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5d5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-avatar svg {
    width: 22px;
    height: 22px;
    fill: var(--purple);
}

/* ════════════════════════
   HERO / CAROUSEL
════════════════════════ */
.hero {
    background-image: url('../images/bg-segitiga.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3rem, 9vw, 5.5rem);
    color: #fff;
    display: inline-flex;
    align-items: center;
    line-height: normal !important;
    margin: 0;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 9vw, 76px);
    height: clamp(52px, 9vw, 76px);
    background: var(--orange);
    border-radius: 50%;
    position: relative;
    animation: wobble 3s ease-in-out infinite;
}

.hero-icon::before {
    content: 'N';
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #fff;
    line-height: 1;
}

.hero-slide-img {
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Indikator carousel */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #fff;
}

/* Tombol panah muncul saat hover */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50%       { transform: rotate(10deg) scale(1.08); }
}

/* ════════════════════════
   WHITE FLOATING CARD
════════════════════════ */
.white-card {
    background: #fff;
    padding: 20px 36px 36px;
    margin: 0px 14px 0px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, .09);
    position: relative;
    z-index: 5;
    border-radius: 30px;
}

.white-card h2 {
    font-family: 'Modak', system-ui;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--purple-dark);
    font-size: clamp(1.4rem, 3.8vw, 2.2rem);
    text-align: center;
    margin-bottom: 10px;
}

.white-card .sub-desc {
    color: #666;
    font-size: .91rem;
    text-align: center;
    max-width: 420px;
    margin: 0 auto 38px;
    line-height: 1.65;
}

/* ════════════════════════
   ROOM CARDS
════════════════════════ */
.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    
    /* 🌟 TAMBAHAN UNTUK DESKTOP: Batasi lebar agar kartu mengecil & taruh di tengah 🌟 */
    max-width: 950px; /* Kamu bisa ubah angka ini (misal 900px atau 1000px) untuk menyesuaikan seberapa kecil/besar ukurannya */
    margin: 0 auto;   /* Memastikan grid tetap berada di tengah layar */
}

.room-grid a {
    text-decoration: none !important;
    color: inherit;
    display: flex;
}

.r-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--purple-dark);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 18px rgba(92, 45, 145, .13);
    transition: transform .25s, box-shadow .25s;
    text-align: center;
    color: #fff;
}

.r-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(92, 45, 145, .22);
}

.r-img {
    width: 100%;
    aspect-ratio: 1.15 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 20px 20px 0 0;
}

.r-img.gaming  { background: linear-gradient(150deg, #1a004e 0%, #4a1090 50%, #1a004e 100%); }
.r-img.karaoke { background: linear-gradient(150deg, #060c28 0%, #0e2d6e 50%, #060c28 100%); }
.r-img.bioskop { background: linear-gradient(150deg, #080820 0%, #1a1860 50%, #080820 100%); }

.r-img::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 60%;
    border-radius: 50%;
    filter: blur(28px);
    bottom: 0;
    left: 15%;
    opacity: .65;
}

.r-img.gaming::before  { background: #9b44ff; }
.r-img.karaoke::before { background: #4488ff; }
.r-img.bioskop::before { background: #6633cc; }

.r-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.r-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.r-card:hover .r-badge img {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.3s ease;
}

.r-sofa {
    font-size: 2.2rem;
    position: absolute;
    bottom: 10px;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}

.r-foot {
    color: #fff;
    padding: 13px 14px 15px;
    background: transparent;
}

.r-foot h5 {
    font-family: 'Modak', system-ui;
    margin-bottom: 6px;
    letter-spacing: 1.2px;
    font-size: 1.6rem;
    font-weight: normal;
    color: #f1f33f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.r-foot p {
    font-size: .85rem;
    opacity: 0.85;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}

/* ════════════════════════
   ROOM TOUR
════════════════════════ */
.tour-section {
    background: #d5e319 !important;
    text-align: center;
    position: relative;
    padding: 20px 20px;
    margin: 20px 14px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.tour-section h2 {
    font-family: "Modak", system-ui;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--purple-dark);
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    margin-bottom: 6px;
}

.tour-section .tour-sub {
    font-weight: 700;
    color: #ffffff;
    font-size: .95rem;
    margin-bottom: 28px;
}

.vid-wrap {
    max-width: 550px;
    align-items: center;
    margin: 32px auto;
    overflow: hidden;
    box-shadow: 0 10px 44px rgba(0, 0, 0, .28);
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
    cursor: pointer;
    border-radius: 12px;
    border: none;
}

.vid-thumb {
    position: absolute;
    inset: 0;
    background: #000;
}

.vid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.vid-wrap:hover .vid-overlay {
    background: rgba(0, 0, 0, .08);
}

.vid-play {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.vid-wrap:hover .vid-play {
    transform: scale(1.1);
}

.vid-play svg {
    width: 28px;
    height: 28px;
    fill: var(--purple);
    margin-left: 4px;
}

.vid-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ════════════════════════
   CTA SECTION
════════════════════════ */
.cta-section {
    background: transparent;
    padding: 80px 24px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, .18);
    pointer-events: none;
}

.cta-section h2 {
    font-family: "Modak", system-ui;
    color: var(--yellow);
    font-weight: 400;
    font-style: normal;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-section p {
    color: rgba(255, 255, 255, .83);
    font-size: .95rem;
    max-width: 400px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.btn-pesan {
    display: inline-block;
    background: var(--yellow);
    color: var(--purple-dark) !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 15px 60px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 22px rgba(212, 230, 0, .32);
    position: relative;
    z-index: 2;
}

.btn-pesan:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 230, 0, .45);
    color: #fff !important;
}

/* Base Wrapper Karakter (Desktop) */
.character-wrapper {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 350px;
    height: auto;
    transition: all 0.3s ease;
    z-index: 10;
}

.character-wrapper .foreground-char {
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.item-interaktif {
    width: 120px;
    cursor: pointer;
    position: absolute;
    top: 50px;
    right: 100px;
    z-index: 999;
    transition: filter 0.3s;
}

.item-interaktif:hover {
    filter: brightness(1.2);
}

.fall-animation {
    animation: gravityFall 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

@keyframes gravityFall {
    0% { transform: translateY(0) scaleX(-1) rotate(-10deg); opacity: 1; }
    30% { transform: translateY(-20px) scaleX(-1) rotate(-20deg); }
    100% { transform: translateY(800px) scaleX(-1) rotate(180deg); opacity: 0; }
}

/* ════════════════════════
   FOOTER
════════════════════════ */
footer {
    background: #14083a;
    color: rgba(255, 255, 255, .75);
    padding: 50px 0 20px;
}

.f-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 1.45rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.f-logo.font-modak {
    font-family: 'Modak', system-ui;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.2;
}

.f-logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--orange);
    border-radius: 50%;
    font-size: .8rem;
}

.f-tagline {
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.7;
    margin-top: 8px;
    max-width: 170px;
}

.f-head {
    font-family: 'Fredoka One', cursive;
    font-size: .98rem;
    color: #fff;
    margin-bottom: 13px;
}

.f-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.f-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .62);
    line-height: 1.55;
    word-break: break-word; 
    overflow-wrap: break-word;
    width: 100%;
}

.f-list li span:last-child {
    flex: 1;
}

.f-list li .fi img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.f-list li .fi {
    flex-shrink: 0;
    font-size: .88rem;
}

.soc-wrap {
    display: flex;
    gap: 9px;
}

.soc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .12);
    font-size: .8rem;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}

.soc-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.soc-btn:hover {
    background: var(--purple);
    color: #fff;
}

.f-divider {
    border-color: rgba(255, 255, 255, .1) !important;
    margin: 28px 0 14px;
}

.f-copy {
    font-size: .72rem;
    color: rgba(255, 255, 255, .32);
    text-align: center;
}

/* ════════════════════════
   MEDIA QUERIES (RESPONSIVE)
   ════════════════════════ */

/* Tablet & HP Standar */
@media (max-width: 767px) {
    .white-card { padding: 32px 18px 40px; }
    .tour-section { padding: 40px 0; }
    
    /* 🌟 RESET PADDING HERO SINKRONISASI BANNER 🌟 */
    .hero .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .hero .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 🌟 FIX CAROUSEL BANNER INDEKS UTUH (8:3) 🌟 */
    .carousel-inner [style*="min-height"] {
        min-height: auto !important;
        height: auto !important;
    }
    .carousel-inner .rounded-4 {
        height: auto !important;
        aspect-ratio: 1600 / 600 !important; 
        background-size: cover !important; 
        background-position: center center !important;
        padding: 15px !important; 
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* 🌟 PENGATURAN TEKS SLIDE 1 (DESAIN LENGKAP) AGAR RESPONSIF 🌟 */
    .carousel-item .text-white h1 {
        font-size: clamp(1.2rem, 5vw, 2rem) !important;
        margin-bottom: 4px !important;
        display: block !important;
    }
    .carousel-item .text-white p.fs-4 {
        font-size: clamp(0.75rem, 3.5vw, 0.95rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        max-width: 85% !important;
        display: block !important;
    }
    .carousel-item .text-white p.text-uppercase {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }
    .carousel-item .btn-lg {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }
    .carousel-item .d-flex.gap-3.flex-wrap {
        display: flex !important;
        gap: 8px !important;
    }

    /* 🌟 SEMBUNYIKAN TEKS HTML PADA SLIDE BROSUR (SLIDE 2, 3, 4) 🌟 */
    .carousel-item .rounded-4:not([style*="linear-gradient"]) {
        background-size: contain !important; 
        padding: 0 !important; 
    }

    /* 🌟 PAKSA 3 KARTU ROOM GRID BERJEJER HORIZONTAL & KOTAK DI HP 🌟 */
    .room-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding: 10px 5px 20px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    .room-grid a {
        flex: 0 0 calc(33.333% - 8px) !important;
        min-width: 125px; /* Sedikit dilebarkan agar teks tidak terlalu terjepit */
    }
    .r-card {
        border-radius: 12px !important; 
    }
    
    /* FIX BENTUK KOTAK: Tambahkan height: auto agar aspect-ratio berfungsi */
    .r-img {
        height: auto !important; 
        aspect-ratio: 1 / 1 !important; 
        border-radius: 12px 12px 0 0 !important; 
    }
    .r-foot {
        padding: 8px 6px 12px !important; 
    }
    .r-foot h5 {
        font-size: 0.95rem !important; 
        margin-bottom: 2px !important;
    }
    .r-foot p {
        font-size: 0.65rem !important; 
        line-height: 1.2 !important;
    }
    .r-badge img {
        width: 14px !important; 
        height: 14px !important;
    }

    /* 🌟 PAKSA KARTU KOLEKSI GAME BERJEJER HORIZONTAL DI HP 🌟 */
    .game-grid {
        display: flex !important;
        flex-wrap: nowrap !important; 
        overflow-x: auto !important;  
        gap: 16px !important;         
        padding-bottom: 20px !important; 
        justify-content: flex-start !important; 
        -webkit-overflow-scrolling: touch; 
    }
    .game-card {
        flex: 0 0 140px !important; 
        width: 140px !important;
        max-width: none !important;
        margin-bottom: 0 !important;
    }
    .game-card img {
        width: 100% !important;
        height: 180px !important; 
        object-fit: cover !important;
        border-radius: 12px;
    }
    .game-card h5 {
        font-size: 0.9rem !important;
        margin-top: 10px !important;
        white-space: normal !important; 
        text-align: center;
        line-height: 1.3 !important;
    }
    .game-grid::-webkit-scrollbar {
        height: 6px;
    }
    .game-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    .game-grid::-webkit-scrollbar-thumb {
        background: var(--yellow); 
        border-radius: 10px;
    }

    /* 🌟 FIX RESPONSIVE CTA CHARACTER 🌟 */
    .cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 60px 16px 0px;
    }
    .cta-content {
        order: 1;
        margin-left: 0 !important;
        width: 100%;
    }
    .character-wrapper {
        position: relative !important;
        margin: 20px auto 0;
        width: 220px;
        left: 0 !important;
        order: 2;
    }
    .item-interaktif {
        width: 50px !important;
        top: -15px !important; 
        left: 55px !important;
    }
    .vid-wrap {
        max-width: 90% !important;
        margin: 20px auto !important;
    }
}

/* HP Kecil / Layar Sangat Sempit */
@media (max-width: 576px) {
    .f-list { gap: 12px; }
    .f-list li { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .hero        { padding: 20px 0 !important; }
    .cta-section { padding: 52px 14px 0px; }
    .hero-slide-img { height: auto !important; }
}