/* ==================== KITCHEN PAGE STYLES ==================== */

:root {
    --primary-color: #6adf43;
    --secondary-color: #FFA500;
    --accent-color: #00A8FF;
    --dark-bg: #0a0a0a;
    --darker-bg: #0d0d0d;
    --card-bg: rgba(20, 20, 20, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

/* Kitchen Hero - aligned with story-hero structure */
.story-hero {
    min-height: 100vh;
    padding-top: 80px;
    background:
        linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 46, 0.9)),
        url('../assets/images/kitchen-hero-bg.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 991px) {
    .story-hero {
        padding-top: 70px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(106, 223, 67, 0.07) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Flame decorations */
.flame-left,
.flame-right {
    position: absolute;
    width: 260px;
    height: 360px;
    filter: blur(60px);
    opacity: 0.25;
    animation: flameFlicker 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.flame-left {
    top: 15%;
    left: -80px;
    background: radial-gradient(ellipse at center, #ff6b35 0%, transparent 70%);
}

.flame-right {
    bottom: 15%;
    right: -80px;
    background: radial-gradient(ellipse at center, #ff6b35 0%, transparent 70%);
    animation-delay: 2s;
}

@keyframes flameFlicker {

    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.25;
    }

    50% {
        transform: scale(1.15) translateY(-15px);
        opacity: 0.4;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color, #8fbc3f), var(--secondary-color, #ff6b35));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: glowTitle 2.5s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes glowTitle {
    from {
        filter: drop-shadow(0 0 8px rgba(106, 223, 67, 0.4));
    }

    to {
        filter: drop-shadow(0 0 22px rgba(106, 223, 67, 0.75));
    }
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 40px;
    max-width: 620px;
    margin-inline: auto;
}

/* Kitchen Portal */
.kitchen-portal {
    width: min(300px, 70vw);
    height: min(300px, 70vw);
    margin: 0 auto 40px;
    position: relative;
}

.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid rgba(106, 223, 67, 0.6);
    border-radius: 50%;
    animation: portalRotate 20s linear infinite;
}

.portal-ring::before,
.portal-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.portal-ring::before {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 1.5px solid rgba(106, 223, 67, 0.2);
    animation: portalRotate 14s linear infinite reverse;
}

.portal-ring::after {
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 1px solid rgba(106, 223, 67, 0.1);
    animation: portalRotate 28s linear infinite;
}

@keyframes portalRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.portal-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(106, 223, 67, 0.4), inset 0 0 40px rgba(106, 223, 67, 0.2);
}

.portal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: portalPulse 4s ease-in-out infinite;
}

@keyframes portalPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.04);
        filter: brightness(1.15);
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 6vw, 60px);
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color, #8fbc3f), var(--secondary-color, #ff6b35));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item .label {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(245, 245, 245, 0.6);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 160px;
}

/* ==================== SECTION COMMON ==================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 10px;
}

.section-header p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(245, 245, 245, 0.6);
}

/* ==================== RECIPE FILTERS ==================== */
.recipe-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 44px;
    flex-wrap: wrap;
    padding: 0 8px;
}

.filter-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(106, 223, 67, 0.25);
    color: var(--light-text, #f5f5f5);
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(106, 223, 67, 0.1);
    border-color: var(--primary-color, #8fbc3f);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color, #8fbc3f), var(--secondary-color, #ff6b35));
    color: #1a1a1a;
    border-color: transparent;
    font-weight: 700;
}

/* ==================== RECIPES GRID ==================== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 28px;
}

/* Recipe Card */
.recipe-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(106, 223, 67, 0.12);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.recipe-card:hover {
    transform: translateY(-8px);
    border-color: rgba(106, 223, 67, 0.55);
    box-shadow: 0 16px 40px rgba(106, 223, 67, 0.15);
}

.recipe-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a2e;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    will-change: transform;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.06);
}

.recipe-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.recipe-content {
    padding: 22px;
}

.recipe-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 8px;
}

.recipe-chapter {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.5);
    margin-bottom: 12px;
}

.recipe-description {
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.78);
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recipe-meta span {
    font-size: 0.82rem;
    color: rgba(245, 245, 245, 0.55);
}

.recipe-meta i {
    margin-left: 4px;
    color: var(--primary-color, #8fbc3f);
}

/* Loading / Empty states */
.recipes-loading,
.recipes-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(245, 245, 245, 0.5);
}

.recipes-loading .spinner-border {
    color: var(--primary-color, #8fbc3f);
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
}

/* ==================== VIDEOS GRID ==================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 28px;
}

.video-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #1a1a2e;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.06);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #1a1a1a;
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--primary-color, #8fbc3f);
}

.video-info {
    padding: 18px 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 0.875rem;
    color: rgba(245, 245, 245, 0.55);
}

/* ==================== TIPS GRID ==================== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 24px;
}

.tip-card {
    background: linear-gradient(135deg, rgba(106, 223, 67, 0.06), rgba(255, 107, 53, 0.06));
    border: 1.5px solid rgba(106, 223, 67, 0.18);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: rgba(106, 223, 67, 0.5);
    box-shadow: 0 10px 28px rgba(106, 223, 67, 0.12);
}

.tip-icon {
    font-size: 2.4rem;
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 16px;
}

.tip-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 12px;
    font-weight: 700;
}

.tip-card p {
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.78);
    line-height: 1.8;
}

/* ==================== MISSING IMAGE FALLBACK ==================== */
.img-missing {
    background: linear-gradient(135deg, rgba(143, 188, 63, 0.08), rgba(0, 168, 204, 0.08));
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-missing::after {
    content: '\f787';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: rgba(143, 188, 63, 0.3);
}

/* ==================== MODAL ==================== */
.modal-content {
    background: #0d0d0d;
    border: 1.5px solid rgba(143, 188, 63, 0.3);
    border-radius: 20px;
    color: #f5f5f5;
}

.modal-header {
    background: linear-gradient(135deg, rgba(143, 188, 63, 0.08), rgba(0, 168, 204, 0.05));
    border-bottom: 1px solid rgba(143, 188, 63, 0.15);
    border-radius: 20px 20px 0 0;
    padding: 20px 26px;
}

.modal-title {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    color: var(--primary-color, #8fbc3f);
    font-weight: 700;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 24px 26px;
    max-height: 72vh;
    overflow-y: auto;
    background: #0d0d0d;
    border-radius: 0 0 20px 20px;
}

.modal-recipe-img {
    border-radius: 12px;
    overflow: hidden;
    max-height: 260px;
    margin-bottom: 20px;
}

.modal-recipe-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.modal-recipe-img.img-missing {
    height: 160px;
    border-radius: 12px;
}

.recipe-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: rgba(143, 188, 63, 0.1);
    border: 1px solid rgba(143, 188, 63, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color, #8fbc3f);
}

.modal-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(143, 188, 63, 0.15);
}

.modal-ingredients li {
    color: rgba(245, 245, 245, 0.85);
    padding: 4px 0;
}

.recipe-step {
    background: rgba(143, 188, 63, 0.05);
    border-radius: 10px;
    padding: 14px 16px;
    border-right: 3px solid var(--primary-color, #8fbc3f);
    margin-bottom: 10px;
}

.recipe-step h6 {
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 6px;
    font-weight: 600;
}

.recipe-step p {
    margin: 0;
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.93rem;
}

.modal-tips {
    background: rgba(143, 188, 63, 0.07);
    border: 1px solid rgba(143, 188, 63, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.93rem;
}

.modal-tips h6 {
    color: var(--primary-color, #8fbc3f);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-tips li {
    margin-bottom: 4px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .kitchen-portal {
        width: min(220px, 68vw);
        height: min(220px, 68vw);
    }

    .recipes-grid,
    .videos-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .recipe-meta {
        justify-content: flex-start;
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.88rem;
    }

    .modal-body {
        padding: 18px 16px;
    }
}