/**
 * Theme Name: Cuisto Theme
 * Theme URI: https://cuisto.com
 * Description: Modern food blog theme optimized for recipe content
 * Version: 2.0.1
 * Author: Cuisto Team
 * License: GPL v2 or later
 * Text Domain: cuisto
 * Tags: recipes, food, blog, modern
 */

:root {
    --primary: #FF6B35;
    --primary-dark: #E5552A;
    --primary-light: #FF8C61;
    --secondary: #004E89;
    --secondary-light: #0066B3;
    --accent: #F7B801;
    --success: #00B894;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --background: #FFFFFF;
    --background-light: #F8F9FA;
    --background-gray: #ECEFF1;
    --border: #DFE6E9;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

a:hover {
    color: var(--primary-dark);
}

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

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
}

.main-nav li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav li a:hover,
.main-nav li a.active {
    background: var(--primary);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(0, 78, 137, 0.9) 100%),
                url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?w=1600&q=80') center/cover;
    background-attachment: fixed;
    color: white;
    padding: clamp(5rem, 15vw, 9rem) var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.3), transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: var(--space-10);
    opacity: 0.98;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: white;
    color: var(--primary);
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Main Content */
.content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-6);
}

.recipes-section {
    margin-top: var(--space-8);
}

/* Recipe Cards Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.recipe-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.recipe-card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: linear-gradient(135deg, var(--background-gray) 0%, var(--background-light) 100%);
}

.recipe-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-card:hover .recipe-card-image {
    transform: scale(1.08);
}

.recipe-category-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.recipe-card-content {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-3);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.recipe-card-title a {
    color: inherit;
    transition: var(--transition);
}

.recipe-card-title a:hover {
    color: var(--primary);
}

.recipe-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.recipe-card-meta {
    display: flex;
    gap: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
}

.recipe-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Sidebar */
#sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.widget h2 {
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--primary);
    padding-left: var(--space-2);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2D3436 0%, #1e272e 100%);
    color: rgba(255,255,255,0.9);
    padding: var(--space-12) var(--space-6) var(--space-6);
    margin-top: var(--space-16);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.footer-widget h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--space-4);
}

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

.footer-widget li {
    margin-bottom: var(--space-3);
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

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

.site-info {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.site-info p {
    margin-bottom: var(--space-2);
}

/* Page Header */
.page-header {
    background: var(--background);
    padding: var(--space-10) var(--space-6);
    text-align: center;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .recipes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-12) var(--space-4);
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-card-image-wrapper {
        height: 220px;
    }
    
    .btn {
        padding: var(--space-3) var(--space-6);
        font-size: 0.95rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ============================
   SIDEBAR STYLING
   ============================ */

.widget-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

/* Search Widget */
.search-widget .search-form {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-submit {
    padding: 0.75rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #e55a35;
    transform: translateY(-2px);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* Popular Recipes Widget */
.popular-recipes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-recipe-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: var(--background);
}

.popular-recipe-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.popular-recipe-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-recipe-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.popular-recipe-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Categories Widget */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-list li a:hover {
    background: white;
    border-left-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.category-count {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(245, 158, 11, 0.9)),
                url('/wp-content/uploads/2025/12/newsletter/newsletter-bg.jpg') center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(245, 158, 11, 0.85));
    z-index: 0;
}

.newsletter-widget > * {
    position: relative;
    z-index: 1;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-email {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-email:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.newsletter-submit {
    padding: 0.875rem 1.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0 0;
    text-align: center;
}

/* Social Widget */
.social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link.facebook {
    background: #1877F2;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: white;
}

.social-link.pinterest {
    background: #E60023;
    color: white;
}

.social-link.youtube {
    background: #FF0000;
    color: white;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    .social-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .popular-recipe-item img {
        width: 60px;
        height: 60px;
    }
}

/* ============================
   SINGLE RECIPE PAGE
   ============================ */

.recipe-hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    margin: -2rem -2rem 2rem -2rem;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.recipe-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 3rem 2rem 2rem 2rem;
}

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

.recipe-hero-content .recipe-category-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
}

.recipe-hero-content .recipe-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.recipe-header {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.recipe-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.recipe-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.print-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.print-button svg {
    width: 20px;
    height: 20px;
}

.recipe-meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    background: var(--background);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.recipe-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recipe-meta-bar .meta-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.recipe-meta-bar .meta-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recipe-meta-bar .meta-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.recipe-meta-bar .meta-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
}

.entry-content h3 {
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.entry-content ol li {
    padding-left: 0.5rem;
}

.entry-content strong {
    color: var(--primary);
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.recipe-share {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--background);
    border-radius: 12px;
    text-align: center;
}

.recipe-share h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.related-recipes {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-recipes h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .recipe-hero-image {
        height: 350px;
        margin: -1rem -1rem 1.5rem -1rem;
    }
    
    .recipe-hero-overlay {
        padding: 2rem 1rem 1.5rem 1rem;
    }
    
    .recipe-hero-content .recipe-title {
        font-size: 1.75rem;
    }
    
    .recipe-meta-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .recipe-actions {
        flex-direction: column;
    }
    
    .print-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================
   CATEGORY PAGES
   ============================ */

.category-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(0px);
    z-index: 0;
}

.category-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-icon svg {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.category-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.category-hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.category-count svg {
    width: 20px;
    height: 20px;
}

.category-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-right label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.recipe-sort-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.recipe-sort-select:hover {
    border-color: var(--primary);
}

.recipe-sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--background);
    border-radius: 12px;
}

.no-results h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .category-hero {
        padding: 3rem 1rem;
        margin: -1rem -1rem 2rem -1rem;
        background-attachment: scroll;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .category-hero-title {
        font-size: 2rem;
    }
    
    .category-hero-description {
        font-size: 1rem;
    }
    
    .category-filter-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recipe-sort-select {
        width: 100%;
    }
}

/* ============================
   404 ERROR PAGE
   ============================ */

.error-404-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.error-404-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.error-404-illustration {
    margin-bottom: 2rem;
}

.error-404-illustration svg {
    color: var(--primary);
    opacity: 0.3;
}

.error-404-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.error-404-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-404-search {
    margin: 2rem 0;
}

.search-form-404 {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-field-404 {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-field-404:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-submit-404 {
    padding: 1rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-submit-404:hover {
    background: #e55a35;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.error-404-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.error-404-links .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-404-recipes {
    margin: 4rem 0;
}

.error-404-recipes h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.error-404-categories {
    margin: 4rem 0;
}

.error-404-categories h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.category-grid-404 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card-404 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.category-card-404:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-name-404 {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-count-404 {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================
   ABOUT PAGE STYLING
   ============================ */

.about-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 0 0 24px 24px;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin: 0 0 1rem 0;
}

.about-intro {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.about-story,
.about-philosophy,
.about-mission,
.about-connect,
.about-thanks {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.about-story h2,
.about-philosophy h2,
.about-mission h2,
.about-connect h2,
.about-thanks h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
}

.about-story p,
.about-mission p,
.about-connect p,
.about-thanks p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.philosophy-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.philosophy-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.philosophy-list strong {
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.about-mission ul,
.about-connect ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-mission li,
.about-connect li {
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.about-signature {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .error-404-links {
        flex-direction: column;
    }
    
    .error-404-links .btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-form-404 {
        flex-direction: column;
    }
    
    .search-submit-404 {
        width: 100%;
        justify-content: center;
    }
    
    .about-hero {
        margin: -1rem -1rem 2rem -1rem;
        padding: 2rem 1rem;
    }
    
    .about-story,
    .about-philosophy,
    .about-mission,
    .about-connect,
    .about-thanks {
        padding: 1.5rem;
    }
}

/* ============================================
   NUTRITION FACTS
   ============================================ */
.nutrition-facts {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.nutrition-facts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--text-primary);
    padding-bottom: 0.75rem;
}

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

.nutrition-item {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nutrition-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nutrition-item.nutrition-calories {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a50 100%);
    color: white;
    grid-column: span 2;
}

.nutrition-item.nutrition-calories .nutrition-value {
    font-size: 3rem;
    color: white;
}

.nutrition-item.nutrition-calories .nutrition-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.nutrition-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.nutrition-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nutrition-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 1rem 0 0 0;
    font-style: italic;
}

/* Responsive nutrition */
@media (max-width: 768px) {
    .nutrition-facts {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nutrition-item.nutrition-calories {
        grid-column: span 2;
    }
    
    .nutrition-value {
        font-size: 1.75rem;
    }
    
    .nutrition-item.nutrition-calories .nutrition-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .nutrition-facts h3 {
        font-size: 1.25rem;
    }
    
    .nutrition-grid {
        gap: 0.75rem;
    }
    
    .nutrition-item {
        padding: 1rem;
    }
}
/**
 * Theme Name: The Open Recipe - Enhanced
 * Theme URI: https://theopenrecipe.com
 * Description: Modern food blog theme with advanced UI/UX
 * Version: 3.0.0
 * Author: The Open Recipe Team
 * License: GPL v2 or later
 * Text Domain: openrecipe
 * Tags: recipes, food, blog, modern, animated
 */

/* ========================================
   DESIGN SYSTEM & CSS VARIABLES
   ======================================== */
:root {
    /* Brand Colors */
    --primary: #FF6B35;
    --primary-dark: #E5552A;
    --primary-light: #FF8C61;
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    
    --secondary: #004E89;
    --secondary-light: #0066B3;
    --secondary-gradient: linear-gradient(135deg, #004E89 0%, #0066B3 100%);
    
    --accent: #F7B801;
    --accent-light: #FFD93D;
    --success: #00B894;
    --error: #FF7675;
    --warning: #FDCB6E;
    --info: #74B9FF;
    
    /* Text Colors */
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-tertiary: #B2BEC3;
    --text-inverse: #FFFFFF;
    
    /* Backgrounds */
    --background: #FFFFFF;
    --background-light: #F8F9FA;
    --background-gray: #ECEFF1;
    --background-dark: #2D3436;
    --overlay: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(255, 255, 255, 0.9);
    
    /* Borders */
    --border: #DFE6E9;
    --border-light: #F1F3F5;
    
    /* Shadows - Enhanced */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.2);
    --shadow-2xl: 0 30px 60px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Transitions - Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --transition-fast: 150ms var(--ease-out);
    --transition: 300ms var(--ease-in-out);
    --transition-slow: 500ms var(--ease-smooth);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   GLOBAL RESETS & BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.25rem, 6vw, 4rem); 
    margin-bottom: var(--space-6);
}
h2 { font-size: clamp(1.875rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h6 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
    margin-bottom: var(--space-4);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

.link-underline {
    text-decoration: none;
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.link-underline:hover::after {
    width: 100%;
}

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

/* ========================================
   HEADER & NAVIGATION - Enhanced
   ======================================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: transform var(--transition);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-logo:hover {
    transform: scale(1.05) translateY(-2px);
}

.site-logo::before {
    content: '🍳';
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
}

.main-nav li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.main-nav li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left var(--transition);
    z-index: -1;
}

.main-nav li a:hover::before,
.main-nav li a.active::before {
    left: 0;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   BUTTONS - Enhanced
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: var(--background-gray);
}

.btn:active {
    transform: scale(0.95);
}

/* ========================================
   CARDS - Enhanced with Glassmorphism
   ======================================== */
.card {
    background: var(--background);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 184, 1, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--background-gray);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.1) rotate(2deg);
}

.card-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.card-content {
    padding: var(--space-6);
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    line-height: 1.3;
}

.card-title:hover {
    color: var(--primary);
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-meta-item svg,
.card-meta-item::before {
    color: var(--primary);
}

/* ========================================
   HERO SECTIONS - Immersive
   ======================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #004E89 0%, #0066B3 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
    animation: fadeInUp 0.8s var(--ease-out);
}

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

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: white;
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Parallax Effect */
.hero-background {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

/* ========================================
   RECIPE GRID - Enhanced
   ======================================== */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
    margin: var(--space-8) 0;
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Animation */
.fade-in {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

/* Stagger Children Animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Hover Lift Effect */
.hover-lift {
    transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        var(--background-gray) 25%, 
        var(--border-light) 50%, 
        var(--background-gray) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1600px;
}

.section {
    padding: var(--space-16) 0;
}

.section-sm {
    padding: var(--space-8) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-tertiary); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox Utilities */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }

/* Background Utilities */
.bg-white { background: var(--background); }
.bg-light { background: var(--background-light); }
.bg-gray { background: var(--background-gray); }
.bg-gradient { background: var(--primary-gradient); }

/* Border Utilities */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Transition Utilities */
.transition { transition: var(--transition); }
.transition-fast { transition: var(--transition-fast); }
.transition-slow { transition: var(--transition-slow); }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    :root {
        --space-16: 3rem;
        --space-24: 4.5rem;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-2);
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    :root {
        font-size: 14px;
        --space-6: 1rem;
        --space-8: 1.5rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
/**
 * Single Recipe Page - Enhanced UI/UX
 * Additional styles for recipe pages
 */

/* ========================================
   RECIPE HERO - Full Screen Immersive
   ======================================== */
.recipe-hero-image {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: -100px;
}

.recipe-hero-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

.recipe-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Floating Recipe Title Over Hero */
.recipe-header-floating {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    transform: translateY(-120px);
}

.recipe-header-floating .recipe-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.recipe-meta-hero {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.recipe-meta-item svg,
.recipe-meta-item::before {
    font-size: 1.2rem;
}

/* Action Buttons - Floating */
.recipe-actions-hero {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.recipe-actions-hero .btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: none;
    box-shadow: var(--shadow-lg);
}

.recipe-actions-hero .btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.recipe-actions-hero .btn-primary {
    background: var(--primary-gradient);
    color: white;
}

/* ========================================
   RECIPE CONTENT - Cards Layout
   ======================================== */
.recipe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-16);
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

@media (max-width: 992px) {
    .recipe-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Recipe Content */
.recipe-main-content {
    background: var(--background);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.recipe-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* Ingredients Card - Enhanced */
.recipe-ingredients {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DB 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    border: 2px solid rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
}

.recipe-ingredients::before {
    content: '🧂';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.recipe-ingredients h3 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.recipe-ingredients h3::before {
    content: '📝';
    font-size: 1.5rem;
}

.recipe-ingredients ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-ingredients li {
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: var(--transition);
    cursor: pointer;
}

.recipe-ingredients li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.recipe-ingredients li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.recipe-ingredients li.checked {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Instructions - Step by Step */
.recipe-instructions {
    margin-bottom: var(--space-8);
}

.recipe-instructions h3 {
    color: var(--secondary);
    font-size: 1.75rem;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.recipe-instructions h3::before {
    content: '👨‍🍳';
    font-size: 1.5rem;
}

.recipe-step {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: var(--background-light);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.recipe-step:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
}

.recipe-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.recipe-step-content {
    flex: 1;
}

.recipe-step-content p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Nutrition Facts - Premium Card */
.nutrition-facts {
    background: linear-gradient(135deg, #E8F5FF 0%, #D1ECFF 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-8) 0;
    border: 2px solid rgba(0, 78, 137, 0.1);
    position: relative;
    overflow: hidden;
}

.nutrition-facts::before {
    content: '💪';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.nutrition-facts h3 {
    color: var(--secondary);
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nutrition-facts h3::before {
    content: '📊';
    font-size: 1.5rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3);
    position: relative;
    z-index: 1;
}

.nutrition-item {
    background: white;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.nutrition-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.nutrition-item.nutrition-calories {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    color: white;
    grid-column: span 2;
}

@media (max-width: 576px) {
    .nutrition-item.nutrition-calories {
        grid-column: span 1;
    }
}

.nutrition-item .nutrition-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--space-2);
    line-height: 1;
}

.nutrition-item .nutrition-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Recipe Sidebar */
.recipe-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.recipe-sidebar-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-6);
}

.recipe-sidebar-card h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-light);
}

/* Rating Stars Interactive */
.rating-stars {
    display: flex;
    gap: var(--space-2);
    font-size: 1.5rem;
    cursor: pointer;
}

.rating-stars .star {
    color: #DFE6E9;
    transition: all var(--transition);
    transform-origin: center;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #F7B801;
    transform: scale(1.2) rotate(10deg);
}

/* Print Button Enhanced */
.print-recipe {
    background: white;
    border: 2px dashed var(--primary);
    color: var(--primary);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.print-recipe::before {
    content: '🖨️';
    font-size: 1.25rem;
}

.print-recipe:hover {
    background: var(--primary);
    color: white;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Share Buttons */
.recipe-share {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.share-btn {
    flex: 1;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

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

.share-btn-facebook {
    background: #1877F2;
}

.share-btn-twitter {
    background: #1DA1F2;
}

.share-btn-pinterest {
    background: #E60023;
}

.share-btn-whatsapp {
    background: #25D366;
}

/* Related Recipes */
.related-recipes {
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 2px solid var(--border-light);
}

.related-recipes h3 {
    font-size: 2rem;
    margin-bottom: var(--space-6);
    text-align: center;
}

.related-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

/* Floating Action Button */
.recipe-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.recipe-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: white;
}

/* Timer Widget */
.recipe-timer {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
}

.timer-display {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--primary);
    margin: var(--space-4) 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timer-controls {
    display: flex;
    gap: var(--space-3);
}

.timer-controls button {
    flex: 1;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.timer-start {
    background: var(--success);
    color: white;
}

.timer-pause {
    background: var(--warning);
    color: white;
}

.timer-reset {
    background: var(--error);
    color: white;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {
    .recipe-hero-image {
        height: 50vh;
        min-height: 400px;
        margin-bottom: -80px;
    }
    
    .recipe-header-floating {
        transform: translateY(-100px);
    }
    
    .recipe-header-floating .recipe-title {
        font-size: 2rem;
    }
    
    .recipe-meta-hero {
        gap: var(--space-3);
    }
    
    .recipe-meta-item {
        font-size: 0.875rem;
        padding: var(--space-2) var(--space-3);
    }
    
    .recipe-main-content {
        padding: var(--space-6) var(--space-4);
    }
    
    .recipe-step {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .recipe-fab,
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top {
        bottom: 80px;
    }
}

@media (max-width: 576px) {
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipe-share {
        flex-wrap: wrap;
    }
    
    .share-btn {
        flex-basis: calc(50% - var(--space-2));
    }
}

/* ========================================
   PRINT STYLES FOR RECIPES
   ======================================== */
@media print {
    .recipe-hero-image,
    .recipe-actions-hero,
    .recipe-sidebar,
    .related-recipes,
    .recipe-fab,
    .scroll-to-top,
    .no-print {
        display: none !important;
    }
    
    .recipe-header-floating {
        transform: none;
        padding: var(--space-4) 0;
    }
    
    .recipe-header-floating .recipe-title {
        color: var(--text-primary);
        text-shadow: none;
    }
    
    .recipe-main-content {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .recipe-step {
        page-break-inside: avoid;
    }
    
    .nutrition-facts {
        page-break-inside: avoid;
    }
}

/* ============================
   ABOUT PAGE STYLES
   ============================ */

.about-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 4rem;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.about-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-content-wrapper {
    padding: 2rem 0 4rem;
}

.about-article {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-section-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1.5rem;
}

.about-section-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-section-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.about-section-image img:hover {
    transform: scale(1.02);
}

.about-values {
    margin: 5rem 0;
    text-align: center;
}

.about-values h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 3rem;
}

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

.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.about-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 5rem;
    color: white;
}

.about-cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.about-cta-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.about-cta .primary-button {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.about-cta .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-section {
        grid-template-columns: 1fr;
    }
    
    .team-section .about-section-image {
        order: 1;
    }
    
    .team-section .about-section-content {
        order: 2
    }
}
