/* ================================================
   RACIKKOST — Resep Page Styles
   Extends style.css (shared design tokens)
   ================================================ */

/* ---------- PAGE HEADER ---------- */
.page-header {
    padding-top: 64px;
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding-bottom: 48px;
}

.page-header .container {
    padding-top: 56px;
}

.page-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.page-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ---------- FILTER BAR ---------- */
.filter-section {
    padding: 32px 0 0;
    background: var(--bg);
}

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--brand-muted);
    color: var(--text);
}

.filter-chip.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}


/* ---------- RECIPE GRID ---------- */
.recipes-section {
    padding: 40px 0 96px;
    background: var(--bg);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recipe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    opacity: 1;
    transform: translateY(0);
}

.recipe-card:hover {
    border-color: var(--brand-muted);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(36, 191, 119, 0.06);
}

.recipe-card.hidden {
    display: none;
}

/* Fade-in animation */
.recipe-card.fade-in {
    animation: fadeUp 0.4s var(--ease) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image area */
.recipe-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.recipe-card:hover .recipe-img img {
    transform: scale(1.04);
}

.recipe-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Card body */
.recipe-body {
    padding: 20px;
}

.recipe-body h3 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.recipe-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.recipe-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 4px;
}


/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
    font-size: 15px;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-header h1 { font-size: 28px; }
    .page-desc { font-size: 14px; }

    .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .filter-chip { flex-shrink: 0; }
}
