/* =========================================
   GÓC BẾP PAGE STYLES
   ========================================= */

/* Page Hero */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1a0f00 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/banner.png') center/cover no-repeat;
    opacity: 0.2;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 24px 60px;
    max-width: 800px;
}

.page-hero-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.page-hero-content h1 span {
    color: var(--brand-amber);
    font-style: italic;
}

.page-hero-content p {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Recipe Intro */
.recipe-intro {
    background: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.intro-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.intro-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Recipes Section */
.recipes-section {
    background: var(--rice-white);
    padding: 80px 0;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Recipe Card */
.recipe-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
}

.recipe-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.recipe-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-amber) 0%, #b45309 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.recipe-card:hover .recipe-card-image img {
    transform: scale(1.05);
}

.recipe-time {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.recipe-card-content {
    padding: 32px;
}

.recipe-category {
    display: inline-block;
    background: var(--brand-amber);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.recipe-card-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.recipe-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.recipe-ingredients,
.recipe-steps {
    margin-bottom: 24px;
}

.recipe-ingredients h4,
.recipe-steps h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-ingredients h4::before {
    content: '🥘';
}

.recipe-steps h4::before {
    content: '👨‍🍳';
}

.recipe-ingredients ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recipe-ingredients li {
    background: var(--bg-gray);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-gray);
}

.recipe-steps ol {
    counter-reset: step;
    list-style: none;
}

.recipe-steps li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.recipe-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--brand-amber);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-steps li strong {
    color: var(--text-dark);
}

.recipe-steps li em {
    color: var(--brand-amber);
    font-style: italic;
}

.recipe-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--brand-amber);
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recipe-tip p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.recipe-tip strong {
    color: var(--brand-amber-dark);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1a0f00 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-dark:hover {
    background: white;
    color: var(--brand-dark);
}

/* Active nav link */
.nav-links a.active {
    color: var(--brand-amber);
    font-weight: 600;
}

/* Placeholder for missing images */
.recipe-card-image img[src*=".jpg"] {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #b45309 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2rem;
    }

    .recipe-card-content {
        padding: 24px;
    }

    .recipe-card-content h3 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .recipe-ingredients ul {
        flex-direction: column;
    }

    /* Góc Bếp Mobile Slider */
    .gocbep-slider-container {
        position: relative;
        overflow: hidden;
    }

    .recipes-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 4px;
    }

    .recipes-grid::-webkit-scrollbar {
        display: none;
    }

    .recipe-card {
        flex: 0 0 90%;
        scroll-snap-align: center;
        min-width: 300px;
    }

    .gocbep-slider-btn {
        position: absolute;
        top: 200px;
        z-index: 10;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--brand-amber);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

    .gocbep-slider-btn:hover {
        background: var(--brand-amber-dark);
        transform: scale(1.1);
    }

    .gocbep-slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .gocbep-slider-prev {
        left: 4px;
    }

    .gocbep-slider-next {
        right: 4px;
    }

    .gocbep-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .gocbep-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: var(--transition);
        border: none;
        padding: 0;
    }

    .gocbep-dot.active {
        background: var(--brand-amber);
        transform: scale(1.2);
    }

    .gocbep-dot:hover {
        background: var(--brand-amber-dark);
    }
}

/* Desktop: Hide slider controls */
@media (min-width: 769px) {

    .gocbep-slider-btn,
    .gocbep-slider-dots {
        display: none;
    }
}