/* ==========================================
   KERTARASA.ID - MENU PAGE STYLES
   File ini HANYA di-load di halaman menu
   TIDAK mengganggu homepage
   ========================================== */

/* ==========================================
   1. MENU HERO SECTION
   ========================================== */
.menu-hero-section {
    position: relative;
    padding-top: 120px;
    padding-bottom: 60px;
    color: #fff;
    overflow: hidden;
    background: #2C1B12;
}

.menu-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 27, 18, 0.95) 0%, rgba(92, 64, 51, 0.85) 100%);
    z-index: 1;
}

.menu-hero-section > .max-w-7xl {
    position: relative;
    z-index: 2;
}

.menu-hero-kicker {
    display: block;
    color: #C49A45;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}

.menu-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #fff;
}

.menu-hero-subtitle {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .menu-hero-section {
        padding-top: 160px;
        padding-bottom: 80px;
    }
    .menu-hero-title { font-size: 3.5rem; }
    .menu-hero-subtitle { font-size: 13px; }
}

/* ==========================================
   2. FILTER WRAPPER (STICKY)
   ========================================== */
.menu-filter-wrapper {
    position: sticky;
    top: 60px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(196, 154, 69, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .menu-filter-wrapper {
        top: 55px;
        padding: 12px 0;
    }
}

/* ==========================================
   3. SEARCH BAR
   ========================================== */
.menu-search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto 20px;
}

.menu-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #C49A45;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.menu-search-input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    border-radius: 9999px;
    border: 1.5px solid #E8D5C0;
    background: #FDF8F0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #5C4033;
    transition: all .3s ease;
    outline: none;
}

.menu-search-input::placeholder {
    color: #A8998A;
    font-size: 12px;
}

.menu-search-input:focus {
    border-color: #C49A45;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 154, 69, 0.12);
}

.menu-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8D5C0;
    color: #5C4033;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    z-index: 2;
}

.menu-search-clear:hover {
    background: #C49A45;
    color: #fff;
}

.menu-search-clear.visible {
    display: flex;
}

/* ==========================================
   4. TABS SCROLL
   ========================================== */
.menu-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 4px 16px;
    scroll-snap-type: x proximity;
}

.menu-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.menu-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    min-width: max-content;
    padding: 4px 0 8px;
}

@media (max-width: 1024px) {
    .menu-tabs {
        justify-content: flex-start;
    }
}

/* ==========================================
   5. TAB BUTTON
   ========================================== */
.menu-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 96px;
    padding: 10px 12px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all .3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.menu-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #C49A45 0%, #E8C979 50%, #A88235 100%);
    box-shadow: 
        0 6px 16px rgba(196, 154, 69, 0.3), 
        inset 0 2px 3px rgba(255, 255, 255, 0.3), 
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.menu-tab-icon i {
    font-size: 20px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform .35s ease;
}

.menu-tab-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8B6F47;
    text-align: center;
    line-height: 1.2;
    max-width: 90px;
    transition: color .3s ease;
}

.menu-tab-count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #5C4033;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
    transition: all .3s ease;
    border: 1.5px solid #fff;
    line-height: 1.3;
}

/* Hover */
.menu-tab:hover .menu-tab-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 28px rgba(196, 154, 69, 0.5), 
        inset 0 2px 3px rgba(255, 255, 255, 0.3), 
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.menu-tab:hover .menu-tab-icon i {
    transform: scale(1.1);
}

.menu-tab:hover .menu-tab-label {
    color: #C49A45;
}

/* Active */
.menu-tab.active .menu-tab-icon {
    background: linear-gradient(135deg, #8B6F47 0%, #C49A45 50%, #5C4033 100%);
    box-shadow: 
        0 8px 22px rgba(92, 64, 51, 0.45), 
        inset 0 2px 4px rgba(255, 255, 255, 0.35), 
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.menu-tab.active .menu-tab-label {
    color: #5C4033;
    font-weight: 800;
}

.menu-tab.active .menu-tab-count {
    background: linear-gradient(135deg, #C49A45 0%, #A88235 100%);
}

.menu-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C49A45, transparent);
    border-radius: 2px;
}

/* ==========================================
   6. ACTIVE INFO (COUNTER & RESET)
   ========================================== */
.menu-active-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.menu-counter {
    font-size: 12px;
    color: #6B5B4E;
    text-align: center;
    margin: 0;
}

.menu-counter strong {
    color: #C49A45;
    font-weight: 700;
}

.menu-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #F5EDE0;
    border: 1px solid rgba(196, 154, 69, 0.3);
    color: #8B6F47;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
    font-family: 'Inter', sans-serif;
}

.menu-reset-btn:hover {
    background: #C49A45;
    color: #fff;
    border-color: #C49A45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 154, 69, 0.35);
}

.menu-reset-btn.hidden {
    display: none;
}

/* ==========================================
   7. MENU CATEGORY SECTION
   ========================================== */
.menu-category {
    margin-bottom: 48px;
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(196, 154, 69, 0.2);
    position: relative;
}

.menu-category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #C49A45, transparent);
}

.menu-category-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #5C4033;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .menu-category-title { font-size: 1.875rem; }
}

.menu-subcategory-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    color: #8B6F47;
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #C49A45;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .menu-subcategory-title { font-size: 1.25rem; }
}

/* ==========================================
   8. MENU ITEM CARDS
   ========================================== */
.menu-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    animation: fadeInMenu 0.3s ease-out;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 6px 15px rgba(0, 0, 0, 0.06);
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   9. BADGES
   ========================================== */
.badge-signature,
.badge-best-seller {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.badge-signature {
    background: linear-gradient(135deg, #C49A45 0%, #E8C979 50%, #A88235 100%);
}

.badge-best-seller {
    background: linear-gradient(135deg, #E85D3C 0%, #C4451C 100%);
}

/* ==========================================
   10. LINE CLAMP
   ========================================== */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ==========================================
   11. MENU CTA BOX
   ========================================== */
.menu-cta-box {
    background: linear-gradient(135deg, #5C4033 0%, #2C1B12 100%);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .menu-cta-box { padding: 48px; }
}

/* ==========================================
   12. RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .menu-search-wrapper {
        max-width: 100%;
        margin-bottom: 16px;
    }
    
    .menu-search-input {
        padding: 12px 44px 12px 44px;
        font-size: 12px;
    }
    
    .menu-tab {
        min-width: 80px;
        padding: 8px 8px 10px;
    }
    
    .menu-tab-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    
    .menu-tab-icon i {
        font-size: 16px;
    }
    
    .menu-tab-label {
        font-size: 9px;
        max-width: 76px;
    }
    
    .menu-tab-count {
        font-size: 7px;
        padding: 2px 5px;
        min-width: 16px;
        top: 0;
        right: 2px;
    }
    
    .menu-active-info {
        margin-top: 12px;
        gap: 10px;
    }
    
    .menu-counter {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .menu-tab { min-width: 72px; }
    
    .menu-tab-icon {
        width: 40px;
        height: 40px;
    }
    
    .menu-tab-icon i {
        font-size: 15px;
    }
    
    .menu-tab-label {
        font-size: 8px;
        max-width: 68px;
        letter-spacing: 0.05em;
    }
}