/* Aturan Global Web */
body {
    background-color: #F8F1E2;
    font-family: 'Courier New', Courier, monospace;
    margin: 0; padding: 0;
    overflow-x: hidden; position: relative;
}

/* --- 1. HEADER (Diperbaiki: Margin Dihapus) --- */
.header-container {
    text-align: center;
    position: relative;
    padding: 25px 0;
    margin-top: 10px; /* Jarak atas dikembalikan normal */
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}
.header-image {
    max-width: 75%; height: auto;
    position: relative; z-index: 3;
}

/* Class baru untuk ornamen kue berterbangan */
.flying-cake {
    position: absolute;
    font-size: 2.5rem;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    /* Pusatkan posisi awal di tengah kontainer */
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out;
}

/* --- 2. SEARCH BAR & SUGGESTION --- */
.search-section { display: flex; justify-content: center; margin: 20px 0; }
.search-bar {
    background-color: #F8B170; border-radius: 25px; padding: 10px 25px;
    display: flex; align-items: center; width: 85%; max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); position: relative;
}
#recipe-search { background: none; border: none; color: #4A4A4A; font-size: 16px; width: 100%; outline: none; font-family: inherit; }
#recipe-search::placeholder { color: #FFF0D4; }
.search-button { background: none; border: none; cursor: pointer; padding-left: 10px; }
#dynamic-search-icon { height: 35px; width: 35px; background-color: #FFF0D4; border-radius: 50%; display: block; }

.suggestions-box {
    position: absolute; top: calc(100% + 8px); left: 0; width: 100%;
    background-color: #FFF0D4; border: 2px solid #F8B170; border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); z-index: 99; overflow: hidden; box-sizing: border-box;
}
.suggestion-item { padding: 12px 25px; font-size: 15px; color: #4A4A4A; cursor: pointer; text-align: left; }
.suggestion-item:hover { background-color: #F8B170; color: white; }
#not-found-message { text-align: center; color: #C27664; font-weight: bold; margin: 20px 0; }
.hidden { display: none !important; }

/* --- 3. DISCOVER CAROUSEL TRACK --- */
.discover-carousel-container { position: relative; padding: 10px 0; display: flex; flex-direction: column; gap: 15px; width: 100%; }
.carousel-row { display: flex; justify-content: flex-start; overflow: hidden; margin: 0 auto; }
.row-right { width: calc(85% + 76px); max-width: calc(500px + 76px); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.row-left { width: calc(85% + 152px); max-width: calc(500px + 152px); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%); }
.carousel-track { display: flex; width: max-content; flex-wrap: nowrap; transition: filter 0.3s ease; }

.row-right .carousel-track { animation: scrollRightSmall 22s linear infinite; }
@keyframes scrollRightSmall { 0% { transform: translateX(-625px); } 100% { transform: translateX(0); } }
.row-left .carousel-track { animation: scrollLeftLarge 18s linear infinite; }
@keyframes scrollLeftLarge { 0% { transform: translateX(0); } 100% { transform: translateX(-525px); } }

.grid-item { display: inline-block; border-radius: 20px; object-fit: cover; box-shadow: 0 4px 8px rgba(0,0,0,0.05); background-color: #E2D9C5; flex-shrink: 0; margin-right: 15px; cursor: pointer; }
.grid-item.small { width: 110px; height: 110px; }
.grid-item.large { width: 160px; height: 140px; transition: transform 0.2s; }
.grid-item.large:hover { transform: scale(1.04); }

/* --- 4. TEXT GALLERY --- */
.gallery-text { text-align: center; margin: 25px 0; }
.gallery-text .main-text { font-size: 18px; color: #4A4A4A; }

/* --- 5. INTERACTIVE THEME RESEP --- */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}
.recipe-pdf-style {
    border-radius: 28px;
    width: 90%; max-width: 730px; max-height: 88vh;
    padding: 30px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    position: relative;
    display: flex; flex-direction: column;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}
.modal-pdf-header {
    display: flex; flex-direction: column;
    align-items: flex-start; margin-bottom: 15px; width: 100%;
}
.pdf-logo-tag { font-size: 14px; font-weight: bold; color: #FFFFFF; letter-spacing: 1px; text-transform: uppercase; }
.pdf-deco-line { width: 100%; height: 2px; border-bottom: 2px dashed rgba(255,255,255,0.4); margin-top: 6px; }

.modal-grid-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 25px; overflow: hidden; height: 100%; }
@media (max-width: 620px) {
    .modal-grid-layout { grid-template-columns: 1fr; overflow-y: auto; }
    .recipe-pdf-style { max-height: 92vh; }
}

.modal-visual-side {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 10px 0; text-align: center;
}

.pdf-recipe-title {
    font-size: 20px; color: #000000; margin-top: 0; margin-bottom: 25px; font-weight: bold;
    padding: 10px 24px; border-radius: 15px; display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-transform: lowercase;
}

.pdf-image-wrapper {
    width: 100%; max-width: 220px; aspect-ratio: 1/1; overflow: hidden;
    border-radius: 30px; border: 4px solid #FFFFFF; box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.pdf-dish-img { width: 100%; height: 100%; object-fit: cover; }

.pdf-content-side { overflow-y: auto; padding-right: 10px; display: flex; flex-direction: column; gap: 20px; }

.id-card-box {
    border-radius: 20px; padding: 20px; position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06); margin-top: 10px;
    transition: background-color 0.3s ease;
}

.box-tag {
    position: absolute; top: -14px; left: 18px;
    font-size: 13.5px; color: #FFFFFF !important; margin: 0;
    padding: 4px 14px; border-radius: 8px; font-weight: bold;
    text-transform: lowercase; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pdf-bullet, .pdf-numbered { padding-left: 15px; margin: 12px 0 0 0; font-size: 14.5px; line-height: 1.6; }
.pdf-bullet li { list-style-type: disc; margin-bottom: 6px; }
.pdf-numbered li { margin-bottom: 8px; }

.close-modal-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; color: #FFFFFF; cursor: pointer; z-index: 10; }
.close-modal-btn:hover { color: #F4B34F; }

/* --- 6. GUIDE BOOK GRID & BRAND GRID --- */
.wide-card { max-width: 780px; background-color: #FFFDF9 !important; }
.wide-card .pdf-logo-tag { color: #4A4A4A; }
.wide-card .pdf-deco-line { border-bottom: 2px dashed #F8B170; }
.guide-grid { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 15px; overflow-y: auto; }

.recipe-column { 
    flex: 1; min-width: 210px; background: #FFF0D4; 
    padding: 15px; border-radius: 12px; border: 1px solid #F8B170; 
    cursor: pointer; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.recipe-column:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.recipe-column:hover h4 {
    color: #A35C3D;
}
.recipe-column h4 { 
    margin-top: 0; color: #E63946; 
    border-bottom: 1px solid #F8B170; padding-bottom: 4px; 
    transition: color 0.2s ease;
}
.guide-text-preview { font-size: 13.5px; color: #555; line-height: 1.5; }

.wide-card .close-modal-btn { color: #4A4A4A; }
.wide-card .close-modal-btn:hover { color: #E63946; }


/* --- 7. FOOTER AREA --- */
.menu-footer { 
    position: relative; 
    width: 100%; 
    margin-top: 40px; 
    
    /* INI PERBAIKANNYA: Menghapus warna oranye kecoklatan */
    background-color: transparent; 
    
    /* Jaga padding ini agar kontainer punya tinggi & gambar tidak terpotong */
    padding: 70px 0 190px 0; 
    
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* Pastikan class ini ada untuk mengatur gambarnya */
.footer-bg { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
    z-index: 1; 
}

.footer-overlay-content { 
    position: relative; 
    z-index: 2; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
}
.about-us-tag { background-color: #E63946; color: white; padding: 6px 15px; font-size: 14px; font-weight: bold; border-radius: 8px; align-self: flex-start; margin-left: 12%; }
.menu-buttons { display: flex; justify-content: center; gap: 15px; width: 100%; padding: 0 20px; box-sizing: border-box; flex-wrap: wrap; }
.menu-btn { border-radius: 20px; border: none; padding: 14px 22px; font-size: 14px; font-weight: bold; cursor: pointer; font-family: inherit; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.1s; white-space: nowrap; }
.menu-btn.lime { background-color: #C2E18F; color: #4A4A4A; }
.menu-btn.green { background-color: #00BA54; color: white; }
.menu-btn.blue { background-color: #6ACDE7; color: #4A4A4A; }
.menu-btn:active { transform: translateY(3px); }
