/* ===== العرض التفاعلي 3D في الصفحة الرئيسية ===== */
.showcase-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - 150px);
    padding: 16px 0 6px;
    overflow: hidden;
}
.hero-text { text-align: center; padding: 0 16px; z-index: 20; }
.hero-text h1 { font-family: 'Aref Ruqaa', serif; color: var(--gold-royal); font-size: 2.2em; line-height: 1.4; }
.hero-text p { color: #cbbd9f; font-size: 1em; }

.cat-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0 4px; z-index: 20; padding: 0 10px; }
.cat-filters button {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ddd;
    padding: 6px 20px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.cat-filters button.active, .cat-filters button:hover {
    background: var(--gold-royal);
    color: var(--bg-night);
    box-shadow: 0 0 10px var(--gold-glow);
}

.bg-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Aref Ruqaa', serif;
    font-size: 20vw;
    color: rgba(212, 175, 55, 0.05);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.swiper { width: 100%; padding: 20px 0; z-index: 10; }
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: clamp(260px, 25vw, 320px);
    height: clamp(320px, 44vh, 420px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    cursor: grab;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.swiper-slide:active { cursor: grabbing; }
.slide-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; will-change: transform, filter; }
.slide-name {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(10, 5, 3, 0.95) 0%, rgba(10, 5, 3, 0.7) 60%, transparent 100%);
    color: var(--gold-royal);
    font-family: 'Aref Ruqaa', serif;
    font-size: 2.2em;
    text-align: center;
    padding: 30px 10px 10px 10px;
    text-shadow: 0 2px 5px #000;
}
.swiper-slide:not(.swiper-slide-active) { border-color: transparent; }
.swiper-slide:not(.swiper-slide-active) .slide-img { filter: grayscale(70%) brightness(0.3); }
.swiper-slide-active { border-color: var(--gold-royal); box-shadow: 0 0 30px var(--gold-glow); }

.swiper-button-next, .swiper-button-prev {
    color: var(--gold-royal) !important;
    background: rgba(21, 14, 10, 0.7);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    border: 2px solid var(--gold-royal);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--gold-royal); color: var(--bg-night) !important; box-shadow: 0 0 15px var(--gold-glow); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.5em !important; font-weight: bold; }

.dish-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 20;
    padding: 4px 20px 24px;
    transition: opacity 0.4s ease;
}
.dish-desc { font-size: 1.2em; color: #e0d5c1; max-width: 600px; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9); margin-bottom: 12px; }

@media (max-width: 768px) {
    .hero-text h1 { font-size: 1.6em; }
    .hero-text p { font-size: 0.9em; }
    .showcase-container { min-height: auto; }
    .cat-filters { gap: 6px; }
    .cat-filters button { padding: 5px 12px; font-size: 0.9em; }
    .bg-text { font-size: 28vw; top: 40%; }
    .swiper-slide { width: 240px; height: 320px; }
    .slide-name { font-size: 1.8em; padding: 15px 10px 10px 10px; }
    .swiper-button-next, .swiper-button-prev { transform: scale(0.7); }
    .dish-desc { font-size: 1em; }
    .view-recipe-btn { padding: 10px 30px; font-size: 1.1em; }
}
