/* ============================================
   KAROKA BBQ — MENU PAGE STYLES
   Smoke Effects + Premium Grid Layout
   ============================================ */

/* ===== MENU HERO ===== */
.menu-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.menu-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.8) 80%,
            rgba(0, 0, 0, 1) 100%);
    z-index: 1;
}

.menu-smoke-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

.menu-hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 20px;
}

.menu-hero-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px rgba(204, 0, 0, 0.4), 0 0 80px rgba(204, 0, 0, 0.15);
    border: 2px solid rgba(204, 0, 0, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

.menu-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: #FAFAFA;
}

.menu-hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #CC0000;
    margin-bottom: 20px;
}

.menu-hero-contact {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #B0B0B0;
    letter-spacing: 1px;
}

/* ===== FLOATING SMOKE IN HERO ===== */
.floating-smoke {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.smoke-puff {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(200, 200, 200, 0.15) 0%,
            rgba(180, 180, 180, 0.08) 40%,
            transparent 70%);
    filter: blur(20px);
    animation: smokeDrift linear infinite;
}

.smoke-puff:nth-child(1) {
    width: 200px;
    height: 200px;
    left: 5%;
    bottom: -100px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.smoke-puff:nth-child(2) {
    width: 150px;
    height: 150px;
    left: 20%;
    bottom: -80px;
    animation-duration: 10s;
    animation-delay: 1s;
}

.smoke-puff:nth-child(3) {
    width: 250px;
    height: 250px;
    left: 40%;
    bottom: -120px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.smoke-puff:nth-child(4) {
    width: 180px;
    height: 180px;
    left: 60%;
    bottom: -90px;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.smoke-puff:nth-child(5) {
    width: 220px;
    height: 220px;
    left: 75%;
    bottom: -110px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.smoke-puff:nth-child(6) {
    width: 160px;
    height: 160px;
    left: 90%;
    bottom: -80px;
    animation-duration: 7s;
    animation-delay: 1.5s;
}

.smoke-puff:nth-child(7) {
    width: 190px;
    height: 190px;
    left: 10%;
    bottom: -95px;
    animation-duration: 13s;
    animation-delay: 4s;
}

.smoke-puff:nth-child(8) {
    width: 140px;
    height: 140px;
    left: 50%;
    bottom: -70px;
    animation-duration: 8.5s;
    animation-delay: 2.5s;
}

.smoke-puff:nth-child(9) {
    width: 170px;
    height: 170px;
    left: 30%;
    bottom: -85px;
    animation-duration: 10.5s;
    animation-delay: 5s;
}

.smoke-puff:nth-child(10) {
    width: 210px;
    height: 210px;
    left: 85%;
    bottom: -105px;
    animation-duration: 14s;
    animation-delay: 3.5s;
}

@keyframes smokeDrift {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-120vh) scale(2.5) rotate(45deg);
        opacity: 0;
    }
}

/* ===== FILTER TABS ===== */
.menu-filter-section {
    background: #0A0A0A;
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid rgba(204, 0, 0, 0.15);
    backdrop-filter: blur(20px);
}

.menu-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-filter-tabs::-webkit-scrollbar {
    display: none;
}

.menu-filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #B0B0B0;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.5px;
}

.menu-filter-tab:hover {
    background: rgba(204, 0, 0, 0.15);
    color: #FAFAFA;
    border-color: rgba(204, 0, 0, 0.3);
}

.menu-filter-tab.active {
    background: #CC0000;
    color: #FAFAFA;
    border-color: #CC0000;
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.4);
}

/* ===== MENU MAIN ===== */
.menu-main {
    background: #0A0A0A;
    padding: 60px 0 40px;
    min-height: 60vh;
}

/* ===== MENU CATEGORY ===== */
.menu-category {
    margin-bottom: 80px;
    scroll-margin-top: 140px;
}

.menu-category.hidden-cat {
    display: none;
}

.menu-category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(204, 0, 0, 0.3));
}

.menu-category-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FAFAFA;
}

.category-note {
    font-family: 'Dancing Script', cursive;
    color: #CC0000;
    font-size: 1rem;
    margin-top: 8px;
    font-style: italic;
}

.category-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #CC0000 0%, #FF1A1A 50%, #CC0000 100%);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.4);
}

/* ===== MENU ITEMS GRID ===== */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.menu-items-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ===== MENU ITEM CARD with SMOKE EFFECT ===== */
.menu-item-card {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #CC0000, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-item-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(204, 0, 0, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(204, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.menu-item-card:hover::before {
    opacity: 1;
}

/* ===== SMOKE EFFECT on CARDS ===== */
.smoke-effect {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.menu-item-card:hover .smoke-effect {
    opacity: 1;
}

.smoke-wisp {
    position: absolute;
    bottom: -30px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(180, 180, 180, 0.2) 0%,
            rgba(150, 150, 150, 0.1) 30%,
            transparent 70%);
    filter: blur(12px);
    animation: none;
}

.menu-item-card:hover .smoke-wisp {
    animation: cardSmoke 4s ease-out infinite;
}

.smoke-wisp:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s !important;
}

.smoke-wisp:nth-child(2) {
    width: 100px;
    height: 100px;
    left: 40%;
    animation-delay: 0.8s !important;
}

.smoke-wisp:nth-child(3) {
    width: 70px;
    height: 70px;
    left: 70%;
    animation-delay: 1.6s !important;
}

@keyframes cardSmoke {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    40% {
        opacity: 0.4;
        transform: translateY(-60px) scale(1.2) rotate(15deg);
    }

    100% {
        transform: translateY(-200px) scale(2) rotate(30deg);
        opacity: 0;
    }
}

/* Ambient glow on hover */
.menu-item-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(204, 0, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.menu-item-card:hover::after {
    opacity: 1;
}

/* ===== CARD IMAGE ===== */
.menu-item-image-wrap {
    position: relative;
    width: calc(100% + 48px);
    margin: -30px -24px 20px -24px;
    height: 260px;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.menu-item-image,
.menu-item-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-power);
}

.menu-item-card:hover .menu-item-image,
.menu-item-card:hover .menu-item-video {
    transform: scale(1.1);
}

.menu-item-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
}

/* ===== CARD CONTENT ===== */
.menu-item-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.menu-item-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FAFAFA;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.menu-item-sub {
    font-size: 0.85rem;
    color: #8A8A8A;
    margin-bottom: 8px;
    font-style: italic;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.menu-item-details {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}

.menu-item-details li {
    font-size: 0.88rem;
    color: #B0B0B0;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.menu-item-details li::before {
    content: '🔸';
    position: absolute;
    left: 0;
    font-size: 0.65rem;
    top: 6px;
}

.menu-item-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #CC0000;
    margin-top: auto;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}

/* ===== BADGES ===== */
.menu-item-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 1;
}

.menu-item-badge.bestseller {
    background: linear-gradient(135deg, #CC0000, #FF1A1A);
    color: #FAFAFA;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}

.menu-item-badge.premium {
    background: linear-gradient(135deg, #D4A017, #F0CC71);
    color: #1A1A1A;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.menu-item-badge.new {
    background: linear-gradient(135deg, #25D366, #1DB954);
    color: #FAFAFA;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.menu-item-badge.fire {
    background: linear-gradient(135deg, #E85D04, #F4A100);
    color: #FAFAFA;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4);
}

/* Mini card variant */
.mini-card {
    padding: 20px 18px;
}

.mini-card .menu-item-name {
    font-size: 1.1rem;
}

.mini-card .menu-item-price {
    font-size: 1.25rem;
}

/* ===== SUB-SECTIONS ===== */
.menu-sub-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-sub-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FAFAFA;
    margin-bottom: 24px;
    text-align: center;
}

/* ===== COMPLEMENTS CHIPS ===== */
.complements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.complement-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #B0B0B0;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.complement-chip:hover {
    background: rgba(204, 0, 0, 0.15);
    border-color: rgba(204, 0, 0, 0.3);
    color: #FAFAFA;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.2);
}

/* ===== MENU CTA SECTION ===== */
.menu-cta-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.menu-cta-bg {
    position: absolute;
    inset: 0;
}

.menu-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.menu-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.9) 100%);
}

.menu-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.menu-cta-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #FAFAFA;
}

.menu-cta-content p {
    font-size: 1.1rem;
    color: #B0B0B0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.menu-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.menu-cta-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #8A8A8A;
    font-size: 0.85rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FAFAFA;
}

/* ===== CATEGORY TRANSITIONS ===== */
.menu-category {
    animation: fadeInCategory 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInCategory {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STAGGER ANIMATION for GRID ITEMS ===== */
.menu-item-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.menu-items-grid .menu-item-card:nth-child(1) {
    transition-delay: 0.05s;
}

.menu-items-grid .menu-item-card:nth-child(2) {
    transition-delay: 0.1s;
}

.menu-items-grid .menu-item-card:nth-child(3) {
    transition-delay: 0.15s;
}

.menu-items-grid .menu-item-card:nth-child(4) {
    transition-delay: 0.2s;
}

.menu-items-grid .menu-item-card:nth-child(5) {
    transition-delay: 0.25s;
}

.menu-items-grid .menu-item-card:nth-child(6) {
    transition-delay: 0.3s;
}

.menu-items-grid .menu-item-card:nth-child(7) {
    transition-delay: 0.35s;
}

.menu-items-grid .menu-item-card:nth-child(8) {
    transition-delay: 0.4s;
}

.menu-items-grid .menu-item-card:nth-child(9) {
    transition-delay: 0.45s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-hero {
        height: 40vh;
        min-height: 300px;
    }

    .menu-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .menu-hero-contact {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }

    .menu-filter-section {
        top: 60px;
    }

    .menu-filter-tab {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .menu-items-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-item-card {
        padding: 22px 18px;
    }

    .menu-category-header h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .menu-category {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .menu-items-grid-small {
        grid-template-columns: 1fr;
    }

    .menu-cta-content h2 {
        font-size: 1.8rem;
    }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1200px) {
    .menu-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== SMOKE PERSISTENT AMBIENT ===== */
.menu-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(204, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(204, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(204, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.menu-main>.container {
    position: relative;
    z-index: 1;
}

/* ===== CARD TILT PERSPECTIVE ===== */
.menu-item-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.menu-item-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(2deg);
}

/* ===== GLOWING EMBER PARTICLES ON CARDS ===== */
@keyframes emberFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(30px);
    }
}

/* === ACCORDION === */
.menu-category-header {
    cursor: pointer;
    position: relative;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.menu-category-header:hover {
    background: rgba(255, 255, 255, 0.05);
}
.category-toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--ember-red);
    display: flex;
    align-items: center;
}
.menu-category.collapsed .menu-items-grid {
    display: none;
}
.menu-category.collapsed .arrow-icon {
    transform: rotate(-90deg);
}
@media (max-width: 768px) {
    .hint-text {
        display: none; /* Cache le texte sur petits écrans pour gagner de la place */
    }
}

/* === LIGHTBOX === */
.media-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.media-lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}
.lightbox-close:hover {
    color: var(--fire-yellow);
}
.lightbox-content-wrap {
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-content-wrap img,
.lightbox-content-wrap video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.4);
}