@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #D4AF37; /* Elegant Gold */
    --primary-light: #E5C158;
    --primary-dark: #AA8C2C;
    --secondary: #2C3E50; /* Deep Slate Blue */
    --bg-color: #FAFAFA; /* Ultra clean off-white */
    --surface-color: #FFFFFF;
    --text-main: #1A1A1A; /* Charcoal */
    --text-muted: #666666;
    --border-color: #EAEAEA;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 4px; /* Sharper, more premium corners */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.2rem; font-weight: 300; font-size: 1.05rem; }
a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

/* Layout Structure */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
    font-style: italic;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 2rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.breadcrumbs a { color: var(--text-muted); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs span { margin: 0 0.5rem; color: #CCC; }

/* Hero Section & SaaS Tool */
.hero {
    padding: 6rem 0 7rem;
    background-color: var(--surface-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.main-content {
    min-width: 0; /* Prevent grid blowout */
}

.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

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

.category-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.category-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.category-list a {
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* QuickBite Tool Interface (Rebranded) */
.tool-container {
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
    position: relative;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.tool-textarea {
    width: 100%;
    min-height: 140px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    resize: vertical;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.settings-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.settings-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    background-color: var(--bg-color);
    transition: var(--transition);
}
.settings-group input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #FFF;
    background: var(--text-main);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Recipe Output */
.recipe-output-wrapper {
    margin-top: 3rem;
    display: none;
}

.recipe-output-wrapper.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.recipe-output {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
}

.recipe-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.recipe-output h3 {
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
}

.loading-spinner {
    display: none;
    text-align: center;
    margin-top: 3rem;
}
.loading-spinner.active { display: block; }
.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0,0,0, 0.1);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    margin: 0 auto 1.5rem;
}

/* Blog Roll */
.blog-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
}

.article-card {
    background: var(--surface-color);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 240px;
    background-color: #EEE;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.category-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(4px);
}

.article-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-top: none;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-main);
}
.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary);
    gap: 0.75rem;
}

/* Footer */
.site-footer {
    background-color: var(--text-main);
    color: #FFF;
    padding: 5rem 0 2rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: #FFF;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    color: #999;
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.85rem;
    font-weight: 300;
}

/* Article Page Layout */
.article-layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 0 5rem 0;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.article-featured-image {
    width: 100vw;
    max-width: 1100px;
    height: 600px;
    object-fit: cover;
    margin-bottom: 4rem;
    margin-left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
}

.article-body {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 300;
}

.article-body h2 {
    margin-top: 3.5rem;
    color: var(--text-main);
    font-size: 2rem;
}

.article-body p {
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-body strong {
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper { flex-direction: column; height: auto; padding: 1.5rem 0; gap: 1.5rem; }
    .hero { padding: 4rem 0; }
    .hero h1 { font-size: 2.75rem; }
    .tool-container { padding: 2rem; }
    .settings-group { flex-direction: column; gap: 1rem; }
    .article-header h1 { font-size: 2.5rem; }
    .article-featured-image { height: 400px; }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: var(--radius);
    overflow: hidden;
    top: 100%;
    left: -10px;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--background-color);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Additional Homepage Sections */
.info-section {
    padding: 5rem 0;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.faq-section {
    padding: 5rem 0;
    background: var(--background-color);
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface-color);
}

.faq-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: var(--text-main);
    color: var(--surface-color);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #EEE;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn.accept {
    background: var(--primary);
    color: #121212;
    border: none;
}

.cookie-btn.accept:hover {
    background: var(--primary-dark);
}

.cookie-btn.refuse {
    background: transparent;
    border: 1px solid #555;
    color: #CCC;
}

.cookie-btn.refuse:hover {
    background: #333;
    color: #FFF;
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 3rem;
    }

    .tool-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .tool-textarea {
        min-height: 120px;
    }

    .article-grid, .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
}
