/* =====================================================
   MENU PAGE - Stilovi za stranicu jelovnika
   ===================================================== */

/* ==========================================
   MENU HERO
   ========================================== */
.menu-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.menu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,107,0,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,140,0,0.1) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.menu-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.menu-hero__content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.menu-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,140,0,0.1));
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,107,0,0.3);
    animation: fadeInUp 0.6s ease-out;
}

.menu-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.menu-hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ==========================================
   CATEGORY NAVIGATION - Sticky
   ========================================== */
.category-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    z-index: 100;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,107,0,0.1);
    padding: 16px 0;
    margin-bottom: 40px;
    /* iOS Safari fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.category-nav__inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 20px;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.category-nav__inner::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(145deg, rgba(40,40,40,0.8), rgba(25,25,25,0.9));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category-pill:hover {
    background: linear-gradient(145deg, rgba(255,107,0,0.2), rgba(255,107,0,0.1));
    border-color: rgba(255,107,0,0.5);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,0,0.15);
}

.category-pill.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.4);
}

.category-pill i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.category-pill.active i {
    opacity: 1;
}

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-bar__input {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-bar__input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar__input input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-bar__input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.search-bar__select {
    min-width: 200px;
}

.search-bar__select select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

/* ==========================================
   CATEGORY SECTION
   ========================================== */
.category-section {
    margin-bottom: 60px;
    scroll-margin-top: 150px;
}

.category-section__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.category-section__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,140,0,0.1));
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.25rem;
}

.category-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.category-section__count {
    margin-left: auto;
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================
   MENU PAGE PRODUCT CARD OVERRIDES
   ========================================== */
.product-card__logo-fallback {
    object-fit: contain !important;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(255,107,53,0.08) 100%);
}

/* Addon Toggle Button */
.product-card__toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-card__toggle-btn:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state__icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state__text {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ==========================================
   MENU PAGE RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .menu-hero {
        min-height: 280px;
    }
    
    .menu-hero__content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .menu-hero {
        min-height: 220px;
    }
    
    .menu-hero__title {
        font-size: 1.75rem;
    }
    
    .menu-hero__subtitle {
        font-size: 0.95rem;
    }
    
    .category-nav {
        top: 60px;
        padding: 10px 0;
    }
    
    .category-nav__inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        gap: 8px;
    }
    
    .category-pill {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .category-pill i {
        font-size: 0.9rem;
    }
    
    .category-section {
        padding: 30px 0;
    }
    
    .category-section__header {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .category-section__title {
        font-size: 1.25rem;
    }
    
    .category-section__count {
        margin-left: 0;
        margin-top: 10px;
        font-size: 0.8rem;
    }
    
    .search-bar {
        padding: 12px;
        gap: 10px;
    }
    
    .search-bar__input {
        font-size: 0.9rem;
    }
    
    .search-bar__select {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 576px) {
    .menu-hero {
        min-height: 160px;
        padding-top: 80px;
    }
    
    .menu-hero__title {
        font-size: 1.4rem;
    }
    
    .menu-hero__subtitle {
        font-size: 0.8rem;
        display: none;
    }
    
    .category-nav {
        padding: 8px 0;
        top: 60px;
        position: sticky;
    }
    
    .category-nav__inner {
        padding-left: 12px;
        padding-right: 12px;
        gap: 6px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .category-pill {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 20px;
        flex-shrink: 0;
    }
    
    .category-section {
        padding: 20px 0;
    }
    
    .category-section__title {
        font-size: 1.1rem;
    }
    
    .search-bar {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
        margin-bottom: 15px;
        background: var(--bg-card);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
    }
    
    .search-bar__input {
        min-width: 100%;
    }
    
    .search-bar__input input {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }
    
    .search-bar__select {
        width: 100%;
    }
    
    .search-bar__select select {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .menu-hero {
        min-height: 150px;
    }
    
    .menu-hero__title {
        font-size: 1.35rem;
    }
    
    .category-pill {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    
    .category-section__title {
        font-size: 1.1rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .menu-hero {
        min-height: 150px;
    }
    
    .menu-hero__title {
        font-size: 1.5rem;
    }
    
    .menu-hero__subtitle {
        display: none;
    }
}
