/* Import font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Roboto+Serif:wght@400;500;600;700&family=Roboto:wght@300;400;500;600&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #DEDEDE;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: linear-gradient(to bottom, 
        rgba(25, 27, 26, 1) 0%, 
        rgba(25, 27, 26, 0.95) 20%, 
        rgba(25, 27, 26, 0.85) 40%, 
        rgba(25, 27, 26, 0.7) 60%, 
        rgba(25, 27, 26, 0.5) 80%, 
        rgba(25, 27, 26, 0.2) 100%);
    color: #DEDEDE;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease, text-shadow 0.3s ease;
}

.logo h1:hover {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Navigation menu */
.navigation {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Roboto Serif', serif;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

/* Underline effect untuk nav links */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Mobile menu button (garis 3) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== PAGE SYSTEM ===== */
.page {
    display: none; /* Semua halaman disembunyikan secara default */
    margin-top: 80px; /* Offset untuk fixed header */
    min-height: calc(100vh - 80px);
    background-color: #DEDEDE;
}

.page.active {
    display: block; /* Hanya halaman aktif yang ditampilkan */
}

/* ===== BANNER SECTION (BERANDA) ===== */
.banner {
    background: linear-gradient(135deg, #8b7355 0%, #a68b5b 100%);
    color: black;
    padding: 4rem 0;
    text-align: center;
    margin-top: -80px;
    padding-top: 8rem;
}

.banner-content h2 {
    font-family: 'Roboto Serif', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

.banner-content .brand {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    color: #ffd700; /* Warna emas untuk Sinefolis di banner */
}

.banner-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background-color: #dedede;
    padding: 3rem 0;
}

.stats-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cinema-image img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-info {
    text-align: center;
}

.stats-info h3 {
    font-family: 'Roboto Serif', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: black;
    font-weight: 600;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Kartu statistik */
.stat-card {
    background: linear-gradient(135deg, #8b7355 0%, #a68b5b 100%);
    color: black;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: black;
}

.stat-label {
    font-size: 1.2rem;
    color: black;
    margin-top: 0.5rem;
}

.stat-divider {
    font-size: 2rem;
    font-weight: bold;
    color: black;
}

/* Tombol di beranda */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 7rem;
    margin-bottom: 2rem;
}

.btn {
    font-family: 'Roboto Serif', serif;
    padding: 1rem 5.3rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
    background-color: #2c2c2c;
    color: white;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-tertiary:hover {
    background-color: gray;
    color: white;
}

.quote {
    text-align: center;
    font-style: italic;
    padding-top: 1.5rem;
    font-size: 1.5rem;
    color: black;
}

/* ===== PAGE HEADER (UNTUK SEMUA HALAMAN) ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.page-header h2 {
    font-family: 'Roboto Serif', serif;
    font-size: 2.2rem;
    color: black;
    font-weight: 600;
}

/* Search box */
.search-box input {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    width: 300px;
    outline: none;
    transition: border-color 0.3s ease;
    opacity: 0.75;
}

.search-box input:focus {
    border-color: #191B1A;
}

/* ===== PROMO SECTION ===== */
.promo-section {
    padding-top: 2rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 3rem;
    padding: 2rem 0;
}

/* Kartu promo */
.promo-card {
    background: #2c2c2c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.promo-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promo-content h3 {
    font-family: 'Roboto Serif', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 500;
}

.promo-content p {
    color: white;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex: 1;
}

/* Kode promo di bagian bawah kartu */
.promo-code {
    background-color: #191B1A;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    margin-top: auto;
    text-align: center;
}

/* ===== NOW SHOWING SECTION ===== */
.now-showing-section {
    padding-top: 2rem;
}

/* Filter lokasi (bisa di-scroll horizontal) */
.location-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}
/* transparan scrollbar */
.location-filters::-webkit-scrollbar { 
    height: 4px;
}

.filter-btn {
    font-family: 'Roboto Serif', serif;
    padding: 0.8rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    opacity: 0.65;
    white-space: nowrap; 
    flex-shrink: 0; 
    min-width: fit-content;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #2c2c2c;
    color: white;
    border-color: #2c2c2c;
    opacity: 1;
}

/* Grid film */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
}

/* Kartu film */
.movie-card {
    display: flex;
    background: #2c2c2c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.movie-card img {
    width: 200px;
    height: 100%;
    object-fit: cover;
    align-self: stretch;
}

.movie-info {
    padding: 1.2rem;
    flex: 1;
}

.movie-info h3 {
    font-family: 'Roboto Serif', serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: white;
    font-weight: 500;
}

.movie-info p {
    margin-bottom: 0.8rem;
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Jam tayang */
.showtimes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.time {
    background-color: #ddd;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Warna berbeda untuk jenis studio */
.time.deluxe {
    background-color: #e8f4f8;
    color: #1e3c6b;
}

.time.premiere {
    background-color: #fff2e8;
    color: #a04a12;
}

/* ===== CINEMA SECTION ===== */
.cinema-section {
    padding-top: 2rem;
}

.city-section {
    margin-bottom: 3rem;
}

.city-section h3 {
    font-family: 'Roboto Serif', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    text-align: center;
    font-weight: 600;
}

.cinema-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Kartu bioskop */
.cinema-card {
    display: flex;
    background: #2c2c2c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 0;
    height: 195px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cinema-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cinema-card img {
    width: 200px;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
    margin: 0;
}

.cinema-info {
    flex: 1;
    padding: 1.5rem;
    text-align: justify;
}

.cinema-info h4 {
    font-family: 'Roboto Serif', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.cinema-tags {
    margin-bottom: 1rem;
}

/* Tag untuk jenis studio */
.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.tag.deluxe {
    background-color: #e8f4f8;
    color: #1e3c6b;
}

.tag.premiere {
    background-color: #fff2e8;
    color: #a04a12;
}

.cinema-info p {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.rating {
    font-weight: bold;
    color: white;
}

/* ===== FEEDBACK FORM ===== */
.feedback-section {
    background: #DEDEDE;
    padding: 5rem 0 3rem 0;
}

.feedback-section h2 {
    font-family: 'Roboto Serif', serif;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: black;
    font-weight: 600;
}

.feedback-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    flex: 1;
}

.form-group label {
    font-family: 'Roboto Serif', serif;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c2c2c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2c2c2c;
}

/* Click-gender button styling */
.click-gender-group {
    display: flex;
    gap: 2rem;
}

.click-gender-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.click-gender-label input[type="radio"] {
    display: none; /* Sembunyikan click-gender button default */
}

/* Custom click-gender button */
.click-gender-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    transition: border-color 0.3s ease;
    background-color: white;
    display: inline-block;
}

.click-gender-label input[type="radio"]:checked + .click-gender-custom {
    border-color: white;
}

.click-gender-label input[type="radio"]:checked + .click-gender-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #2c2c2c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Star rating */
.star-rating {
    display: flex;
    gap: 0.5rem;
}

.star {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star:hover,
.star.active {
    color: #ffd700;
    text-shadow: 0 0 1px #000;
}

/* Error message styling */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Submit button */
.btn-submit {
    font-family: 'Roboto Serif', serif;
    background-color: #2c2c2c;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: block;
    margin: 2rem auto 0;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-submit:hover {
    background-color: gray;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(to bottom, 
        rgba(25, 27, 26, 0) 0%, 
        rgba(25, 27, 26, 0.05) 10%, 
        rgba(25, 27, 26, 0.1) 20%, 
        rgba(25, 27, 26, 0.15) 30%, 
        rgba(25, 27, 26, 0.2) 40%, 
        rgba(25, 27, 26, 0.25) 50%, 
        rgba(25, 27, 26, 0.3) 100%);
    color: #191B1A;
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 2rem;
}

/* ===== RESPONSIVE DESIGN (MOBILE) ===== */
@media screen and (max-width: 768px) {
    /* Header mobile */
    .header .container {
        flex-wrap: wrap;
        position: relative;
        padding: 0 30px;
    }

    .logo h1 {
        font-size: 2.4rem;
        letter-spacing: 3px;
    }

    /* Page header mobile */
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .page-header h2 {
        font-size: 2.9rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    /* Mobile navigation (dropdown) */
    .navigation {
        display: none;
        width: auto;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        position: absolute;
        top: 100%;
        right: 0.4rem;
        background: rgba(25, 27, 26, 0.95);
        border-radius: 10px;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 1001;
        min-width: 250px;
    }

    .navigation.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }
    
    .nav-link::after {
        display: none; /* Hilangkan underline di mobile */
    }

    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
        transform: scale(1.2);
    }

    .mobile-menu-btn span {
        width: 30px;
        height: 4px;
    }
   
    /* Footer mobile */
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .footer-left {
        display: flex;
        gap: 1rem;
        flex-shrink: 0;
    }

    .footer-right {
        display: flex;
        flex-shrink: 0;
    }

    .footer-left span,
    .footer-right span {
        font-size: 1.4rem;
        white-space: nowrap;
    }    

    /* Search box mobile */
    .search-box input {
        width: 100%;
        max-width: 100%;
        font-size: 1.6rem; 
        padding: 0.8rem 1.5rem; 
        border-radius: 25px;
    }    

    .search-box {
        width: 100%;
    }

    /* ===== BERANDA MOBILE ===== */
    .banner-content h2 {
        font-size: 3.2rem;
    }

    .banner-content p {
        font-size: 1.7rem;
        line-height: 2.4rem;
    }

    .cinema-image img {
        width: 100%;
        max-width: 550px;
        height: 360px;
    }

    .stats-info h3 {
        font-size: 2.4rem;
    }   

    .stats-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-number {
        font-size: 3.8rem;
    }

    .stat-divider {
        font-size: 2.7rem;
    }

    .stat-card {
        width: 100%;
        max-width: 400px;
        height: 100%;
        max-height: 330px;
    }

    .stat-label {
        font-size: 1.7rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem; 
        margin-bottom: 2rem;
    }

    .btn {
        margin-top: 0.5rem;
        width: 85%;
        max-width: 350px;
        padding: 1rem 2rem;
        font-size: 1.5rem;
    } 

    .quote {
        margin-top: 2rem;
        font-size: 1.8rem;
    }

    /* ===== PROMO MOBILE ===== */
    .promo-content h3 {
        font-size: 2.3rem;
    }

    .promo-code {
        font-size: 2rem;
    }

    .promo-content p {
        font-size: 1.4rem;
    }

    .promo-card {
        justify-self: center;
        width: 100%;
        max-width: 700px;
        height: 630px;
    }

    .promo-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }   

    .promo-grid {
        grid-template-columns: 1fr;
    }    

    /* ===== NOW SHOWING MOBILE ===== */
    .location-filters {
        gap: 1rem;
        padding: 0.5rem 1.5rem;
        margin: 0 -1rem 2rem -1rem; /* Width untuk scroll horizontal */
    }

    .filter-btn {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
    }

    .movie-info h3 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .movie-info p {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .tag {
        font-size: 1.5rem;
    }

    .showtime-labels {
        margin-bottom: 0.5rem;
    }

    .time {
        font-size: 1.5rem;
        padding: 0.4rem 0.7rem;
    }

    .movies-grid {
        justify-self: center;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 700px;
        gap: 1.5rem;
    } 

    .movie-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1rem;
        gap: 1rem;
    }

    .movie-card img {
        width: 100%;
        height: 100%;
        max-height: 600px;
        object-fit: cover;
        border-radius: 12px;
    }
    
    /* ===== CINEMA MOBILE ===== */
    .city-section h3 {
        font-size: 2.5rem;
    }
    
    .cinema-card {
        align-self: center;
        width: 100%;
        max-width: 700px;
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1.5rem;
    }

    .cinema-card img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: 15px;
        margin: 0 0 1rem 0;
    }

    .cinema-info {
        padding: 0 1rem;
        padding-bottom: 1.2rem;
        flex: none;
    }

    .cinema-info h4 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .cinema-info p {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .rating {
        font-size: 1.6rem;
    }

    /* ===== FEEDBACK MOBILE ===== */
    .feedback-section h2 {
        font-size: 2.9rem;
    }

    .feedback-form {
        font-size: 2rem;
    }    

    .form-group input,
    .form-group textarea {
        font-size: 2rem;
    }

    .star {
        font-size: 3rem;
    }

    .click-gender-label span {
        width: 25px;
        height: 25px;
    }

    .click-gender-label input[type="radio"]:checked + .click-gender-custom::after {
        width: 12px;
        height: 12px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .btn-submit {
        font-size: 2rem;
    }

    .click-gender-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .error-message {
        font-size: 1.5rem;
    }
}