:root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --surface-2: #0f3460;
    --accent: #e94560;
    --accent-soft: rgba(233, 69, 96, 0.15);
    --text: #f5f5f5;
    --text-muted: rgba(245, 245, 245, 0.6);
    --radius: 14px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ==================== Header ==================== */
.site-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
    font-weight: 400;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    filter: brightness(1.15);
}

/* ==================== Layout ==================== */
.layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}

/* ==================== Sidebar ==================== */
.sidebar {
    flex: 0 0 220px;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.category-list a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.category-list a.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* ==================== Main Content ==================== */
.main-content {
    flex: 1;
}

.page-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.2rem;
}

/* ==================== Recipe Grid ==================== */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recipe-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.15);
}

.recipe-thumb {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
}

.recipe-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.recipe-info {
    padding: 1.2rem;
    flex: 1;
}

.recipe-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.recipe-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* ==================== Recipe Detail Page ==================== */
.recipe-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent);
}

.recipe-category-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.recipe-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.recipe-detail-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.recipe-hero-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.recipe-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .recipe-content {
        grid-template-columns: 1fr;
    }
}

.ingredients-section h2,
.instructions-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ingredients-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ingredients-list li {
    padding: 0.6rem 1rem;
    background: var(--surface);
    border-radius: 8px;
    font-size: 0.95rem;
}

.instructions-list {
    list-style: decimal;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instructions-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recipe-source {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.recipe-source a {
    color: var(--accent);
    text-decoration: none;
}

/* ==================== Footer ==================== */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .search-form {
        max-width: 100%;
        width: 100%;
    }

    .layout {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        flex: 0 0 auto;
    }

    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-list a {
        display: inline-block;
    }

    .recipe-detail-title {
        font-size: 1.8rem;
    }

    .recipe-hero-image {
        height: 250px;
    }

    .recipe-stats {
        gap: 1rem;
    }
}

/* ==================== Ad Slots ==================== */
.ad-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.ad-slot:empty {
    min-height: 0;
    border: none;
    background: transparent;
}

.ad-slot:not(:empty)::before {
    content: 'Advertisement';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    opacity: 0.5;
    background: var(--bg);
    padding: 0 0.5rem;
}

.ad-sidebar {
    margin-top: 2rem;
    min-height: 250px;
    position: relative;
}

.ad-in-grid {
    grid-column: 1 / -1;
    min-height: 120px;
    margin: 0;
    position: relative;
}

/* ==================== Affiliate Box ==================== */
.affiliate-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.affiliate-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.affiliate-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.affiliate-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.affiliate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    width: 160px;
    transition: var(--transition);
}

.affiliate-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.1);
}

.affiliate-img {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.affiliate-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.3rem;
}

.affiliate-item-price {
    font-size: 0.8rem;
    color: var(--accent);
}

.affiliate-item-btn {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.3rem;
}

.affiliate-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.affiliate-disclosure {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 1rem;
    text-align: center;
}

/* ==================== Kitchen Gadgets Section ==================== */
.mission-banner {
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.mission-banner p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.mission-banner p:last-child {
    margin-bottom: 0;
}

.mission-banner strong {
    color: var(--text);
}
.gadgets-section {
    background: var(--surface);
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.gadgets-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.gadgets-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gadgets-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.gadgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gadget-card {
    background: var(--surface-2);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.gadget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.15);
    border-color: var(--accent);
}

.gadget-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.03);
}

.gadget-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gadget-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gadget-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.gadget-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.gadget-card:hover .gadget-btn {
    background: #ff5a7a;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

@media (max-width: 768px) {
    .gadgets-grid {
        grid-template-columns: 1fr;
    }
    .gadgets-section {
        padding: 2rem 1rem;
    }
}