@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Default Dark */
    --bg-main: #0B0E14;
    --bg-card: #151A22;
    --bg-card-hover: #1E2530;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --accent: #F59E0B; /* Vibrant appetizing orange/gold */
    --accent-hover: #D97706;
    --border: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(11, 14, 20, 0.8);
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --accent: #EA580C; /* Slightly deeper orange for contrast on white */
    --accent-hover: #C2410C;
    --border: rgba(0, 0, 0, 0.05);
    --header-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Nav */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.logo span {
    color: var(--accent);
    font-weight: 400;
}

.logo .dot-de {
    font-size: 1rem;
    opacity: 0.7;
    margin-left: -2px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

body.light-mode .theme-toggle .sun-icon { display: block; }
body.light-mode .theme-toggle .moon-icon { display: none; }

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(circle at top, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Container */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Recipe Grid */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--header-bg);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--border);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Single Recipe Page */
.recipe-header {
    margin-bottom: 3rem;
    position: relative;
}

.recipe-hero-img {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.recipe-header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.recipe-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 500;
}

.info-badge svg {
    color: var(--accent);
}

.recipe-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.ingredients-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.ingredients-box h3, .instructions h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.ingredients-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.instructions-step {
    margin-bottom: 2.5rem;
}

.step-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--bg-card-hover);
    color: var(--accent);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .recipe-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ingredients-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .recipe-header-content h1 {
        font-size: 2.2rem;
    }
}
/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-card-hover);
}

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border);
}

.page-btn:disabled:hover {
    background: var(--bg-card);
    color: var(--text-main);
}
/* Search & Filter Layout */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.recipe-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.filters-sidebar {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.filter-checkbox:hover {
    color: var(--text-main);
}

.filter-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .recipe-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}
/* FAQ Accordion Styling */
.faq-section {
    margin-top: 3rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default arrow in webkit */
}

/* Custom Arrow / Plus icon */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid rgba(245, 158, 11, 0.1);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.05);
}
