/* FoodyTube - Modern Recipe Website CSS */
/* CSS Variables for Dynamic Styling */

:root {
    /* Colors - These will be overridden by admin settings */
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --title-color: #1A1A1A;
    --link-color: #FF6B35;
    --hero-heading-color: #1A1A1A;
    --hero-description-color: #333333;
    --hero-button-bg-color: #FF6B35;
    --hero-button-text-color: #FFFFFF;
    --hero-button-border-color: #FF6B35;
    --hero-button-hover-bg-color: #e55a2b;
    --hero-button-hover-text-color: #FFFFFF;
    --card-background: #FFFFFF;
    --card-radius: 12px;
    --card-padding: 20px;
    --card-margin: 15px;
    
    /* Additional Design Variables */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-small: 14px;
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    --line-height: 1.6;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-large); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-small); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-md));
}

.col {
    flex: 1;
    padding: 0 var(--spacing-md);
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* Cards */
.card {
    background: var(--card-background);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    margin: var(--card-margin);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--card-radius) - 4px);
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--title-color);
}

.card-text {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-small);
    color: #666;
    margin-top: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--spacing-sm);
    min-height: 44px;
    position: relative;
    overflow: hidden;
    text-shadow: none;
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn i {
    text-shadow: none;
    filter: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
}

.btn-secondary:hover {
    background: #e0851a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 30, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-small);
    min-height: 36px;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-large);
    min-height: 52px;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.logo {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--text-color);
    cursor: pointer;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.login-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.login-btn i {
    font-size: 1rem;
}

.login-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .login-text {
        display: none;
    }
    
    .login-btn {
        padding: 8px 12px;
        border-radius: var(--border-radius);
    }
    
    .login-btn i {
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    background: var(--background-color);
    color: white;
    padding: 30px 0 30px 0;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 30px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: heroGrain 20s linear infinite;
}

@keyframes heroGrain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: heroShine 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroShine {
    0%, 100% { opacity: 0; transform: translateX(-100%) translateY(-100%); }
    50% { opacity: 1; transform: translateX(100%) translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-recipes-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    color: var(--hero-heading-color) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    color: var(--hero-description-color) !important;
    line-height: 1.5;
}

.text-gradient {
    color: var(--hero-heading-color) !important;
}

/* Override any inherited colors in hero section */
.hero * {
    color: inherit;
}

.hero .hero-title,
.hero .hero-title * {
    color: var(--hero-heading-color) !important;
}

.hero .hero-subtitle {
    color: var(--hero-description-color) !important;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-recipe-heading {
    margin-bottom: 20px;
    text-align: center;
}

.hero-recipe-pill-heading {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.hero-recipe-pill-heading i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.hero-recipe-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-recipe-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-recipe-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.hero-recipe-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-recipe-details {
    flex: 1;
    min-width: 0;
}

.hero-recipe-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
    line-height: 1.3;
}

.hero-recipe-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-recipe-title a:hover {
    color: var(--secondary-color);
}

.hero-recipe-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-recipe-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.hero-recipe-pill {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-recipe-pill:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-recipe-pill i {
    margin-right: 4px;
    font-size: 0.7rem;
    opacity: 0.9;
}

.trending-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    animation: trendingPulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
}

@keyframes trendingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero Button Styles - Professional with Animations */
.hero .btn-primary {
    background: var(--hero-button-bg-color) !important;
    color: var(--hero-button-text-color) !important;
    border: 2px solid var(--hero-button-bg-color) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero .btn-primary:hover::before {
    left: 100%;
}

.hero .btn-primary > * {
    position: relative;
    z-index: 2;
}

.hero .btn-primary:hover {
    background: var(--hero-button-hover-bg-color) !important;
    color: var(--hero-button-hover-text-color) !important;
    border-color: var(--hero-button-hover-bg-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4) !important;
}

.hero .btn-outline {
    background: transparent !important;
    color: var(--hero-button-text-color) !important;
    border: 2px solid var(--hero-button-border-color) !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.hero .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero .btn-outline:hover::before {
    left: 100%;
}

.hero .btn-outline > * {
    position: relative;
    z-index: 2;
}

.hero .btn-outline:hover {
    background: var(--hero-button-hover-bg-color) !important;
    color: var(--hero-button-hover-text-color) !important;
    border-color: var(--hero-button-hover-bg-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4) !important;
}

/* Ensure hero buttons have no icon outlines or text shadows */
.hero .btn i {
    text-shadow: none !important;
    filter: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Modern Category & Cuisine Cards */
body:not(.categories-page):not(.cuisines-page) .categories-grid,
body:not(.categories-page):not(.cuisines-page) .cuisines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-lg) + 15px);
    margin-top: var(--spacing-xl);
    position: relative;
}

body:not(.categories-page):not(.cuisines-page) .category-card,
body:not(.categories-page):not(.cuisines-page) .cuisine-card {
    background: var(--card-background);
    border-radius: var(--card-radius);
    padding: calc(var(--spacing-lg) + 15px);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: block !important; /* Override flex display */
}

body:not(.categories-page):not(.cuisines-page) .category-card::before,
body:not(.categories-page):not(.cuisines-page) .cuisine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

body:not(.categories-page):not(.cuisines-page) .category-card:hover::before,
body:not(.categories-page):not(.cuisines-page) .cuisine-card:hover::before {
    left: 100%;
}

body:not(.categories-page):not(.cuisines-page) .category-card:hover,
body:not(.categories-page):not(.cuisines-page) .cuisine-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

body:not(.categories-page):not(.cuisines-page) .category-image,
body:not(.categories-page):not(.cuisines-page) .cuisine-image {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin: 0 auto var(--spacing-md) !important;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    margin-right: 0 !important; /* Override page-specific margin */
}

body:not(.categories-page):not(.cuisines-page) .category-card:hover .category-image,
body:not(.categories-page):not(.cuisines-page) .cuisine-card:hover .cuisine-image {
    transform: rotate(360deg) scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(247, 147, 30, 0.4);
}

body:not(.categories-page):not(.cuisines-page) .category-title,
body:not(.categories-page):not(.cuisines-page) .cuisine-title {
    font-size: var(--font-size-large);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--title-color);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

body:not(.categories-page):not(.cuisines-page) .category-card:hover .category-title,
body:not(.categories-page):not(.cuisines-page) .cuisine-card:hover .cuisine-title {
    color: var(--primary-color);
}

body:not(.categories-page):not(.cuisines-page) .category-description,
body:not(.categories-page):not(.cuisines-page) .cuisine-description {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

body:not(.categories-page):not(.cuisines-page) .recipe-count-pill {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 2;
}

body:not(.categories-page):not(.cuisines-page) .recipe-count-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: pillShine 2s ease-in-out infinite;
}

@keyframes pillShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Floating Elements Animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

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

/* Modern Section Animations */
.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(var(--primary-color-rgb), 0.02) 50%, transparent 60%);
    animation: sectionGlow 10s ease-in-out infinite;
    z-index: -1;
}

@keyframes sectionGlow {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    animation: titleFloat 8s ease-in-out infinite;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

/* Sections */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Modern Recipe Grid with Floating Animation */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: calc(var(--spacing-lg) + 10px);
    margin-top: var(--spacing-xl);
    position: relative;
}

.recipe-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, transparent 30%, rgba(var(--primary-color-rgb), 0.03) 50%, transparent 70%);
    animation: borderFlow 8s linear infinite;
    z-index: -1;
    border-radius: 20px;
}

@keyframes borderFlow {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.recipe-card {
    background: var(--card-background);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.recipe-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.recipe-card:hover::before {
    left: 100%;
}

.recipe-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

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

.recipe-content {
    padding: calc(var(--spacing-lg) + 10px);
    position: relative;
    z-index: 2;
}

.recipe-title {
    font-size: var(--font-size-large);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--title-color);
    line-height: 1.3;
    transition: color 0.3s ease;
}

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

.recipe-description {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    opacity: 0.8;
}

.recipe-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    font-size: var(--font-size-small);
    color: #666;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-meta i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Recipe Count Badge */
.recipe-count {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Filters */
.filters {
    background: var(--card-background);
    border-radius: var(--card-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-light);
}

.filter-row {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-label {
    font-weight: 500;
    color: var(--title-color);
    font-size: var(--font-size-small);
}

.filter-select {
    padding: var(--spacing-sm);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: white;
    font-size: var(--font-size-base);
    min-width: 150px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #ddd;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--title-color);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

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

.footer-section h3 {
    color: #fff;
    margin-bottom: var(--spacing-md);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: #fff;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: var(--spacing-lg);
    text-align: center;
    color: #fff;
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
        margin: 0 10px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-background);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-medium);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--primary-color) 10%, transparent);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        border: none;
        transition: var(--transition);
        flex-shrink: 0;
        order: 1;
    }
    
    .mobile-menu-toggle:hover {
        background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    }
    
    .logo {
        flex: 1;
        text-align: center;
        margin: 0 15px;
        order: 2;
    }
    
    .header-actions {
        flex-shrink: 0;
        order: 3;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-background);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-medium);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .login-btn {
        background: color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
        border: none !important;
        border-radius: 50% !important;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color) !important;
        flex-shrink: 0;
    }
    
    .login-btn:hover {
        background: color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
        color: var(--text-color) !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .login-btn i {
        font-size: 1.1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-container {
        padding: 40px 20px;
    }
    
    .hero-recipe-heading {
        margin-bottom: 15px;
    }
    
    .hero-recipe-pill-heading {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-recipes-container {
        gap: 12px;
    }
    
    .hero-recipe-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-recipe-image {
        width: 70px;
        height: 70px;
        margin: 0;
    }
    
    .hero-recipe-description {
        -webkit-line-clamp: 1;
        font-size: 0.75rem;
    }
    
    .hero-recipe-pills {
        justify-content: flex-start;
    }
    
    .hero-recipe-pill.show-on-desktop {
        display: none !important;
    }
    
    .newsletter-container {
        padding: 40px 20px;
    }
    
    .newsletter-form .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .categories-grid,
    .cuisines-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .category-card,
    .cuisine-card {
        animation: none;
    }
    
    .category-image,
    .cuisine-image {
        width: 100px;
        height: 100px;
        animation: none;
    }
    
    .recipe-count-pill {
        animation: none;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        margin-bottom: var(--spacing-md);
    }
    
    /* Reduce floating icons on mobile */
    .floating-icons i {
        display: none;
    }
    
    .floating-icons i:nth-child(-n+4) {
        display: block;
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .card {
        margin: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-large); }

.shadow { box-shadow: var(--shadow-light); }
.shadow-md { box-shadow: var(--shadow-medium); }
.shadow-lg { box-shadow: var(--shadow-heavy); }

/* Responsive visibility utilities */
.show-on-mobile { display: none !important; }
.show-on-desktop { display: inline-block !important; }

@media (max-width: 600px) {
  .show-on-mobile { display: inline-block !important; }
  .show-on-desktop { display: none !important; }
  
  /* Force mobile pills to show in hero section */
  .hero-recipe-pills .hero-recipe-pill.show-on-mobile {
    display: inline-block !important;
  }
  
  /* Force desktop pills to hide in hero section */
  .hero-recipe-pills .hero-recipe-pill.show-on-desktop {
    display: none !important;
  }
  
  /* Hide servings and category pills on mobile in hero section */
  .hero-recipe-pills .hero-recipe-pill:nth-child(2),
  .hero-recipe-pills .hero-recipe-pill:nth-child(3) {
    display: none !important;
  }
}

/* Newsletter Section */
.newsletter-section {
    background: var(--background-color);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.newsletter-btn {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    font-weight: 600 !important;
}

.newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
}

/* Single Recipe Page Styles */
.single-recipe-page .recipe-hero {
    background: var(--background-color);
    padding: 40px 0;
    position: relative;
}

.single-recipe-page .recipe-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.single-recipe-page .recipe-hero-image {
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.single-recipe-page .recipe-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-large);
}

.single-recipe-page .recipe-hero-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.single-recipe-page .recipe-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-small);
    color: #666;
}

.single-recipe-page .recipe-breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
}

.single-recipe-page .recipe-breadcrumb a:hover {
    color: var(--primary-color);
}

.single-recipe-page .recipe-breadcrumb i {
    font-size: 12px;
    color: #999;
}

.single-recipe-page .recipe-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--title-color);
    margin: 0;
}

.single-recipe-page .recipe-meta-description {
    font-size: var(--font-size-large);
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

.single-recipe-page .recipe-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.single-recipe-page .recipe-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.single-recipe-page .recipe-meta-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.single-recipe-page .recipe-meta-item span {
    font-weight: 500;
    color: var(--text-color);
}

.single-recipe-page .recipe-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.single-recipe-page .recipe-main {
    padding: 40px 0;
    background: var(--background-color);
}

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

.single-recipe-page .recipe-content {
    background: var(--card-background);
    border-radius: var(--border-radius-large);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-light);
}

.single-recipe-page .recipe-section {
    margin-bottom: var(--spacing-2xl);
}

.single-recipe-page .recipe-section:last-child {
    margin-bottom: 0;
}

.single-recipe-page .recipe-section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.single-recipe-page .recipe-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.single-recipe-page .recipe-description {
    font-size: var(--font-size-large);
    line-height: 1.7;
    color: var(--text-color);
}

.single-recipe-page .recipe-ingredients {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.single-recipe-page .ingredient-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.single-recipe-page .ingredient-item i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.single-recipe-page .ingredient-item span {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
}

.single-recipe-page .recipe-equipment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.single-recipe-page .equipment-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.single-recipe-page .equipment-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.single-recipe-page .equipment-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.single-recipe-page .equipment-info {
    flex: 1;
}

.single-recipe-page .equipment-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: var(--spacing-xs);
}

.single-recipe-page .equipment-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 500;
}

.single-recipe-page .equipment-link:hover {
    color: var(--secondary-color);
}

.single-recipe-page .recipe-directions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.single-recipe-page .direction-step {
    background: var(--card-background);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.single-recipe-page .direction-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
}

.single-recipe-page .step-number {
    font-size: var(--font-size-large);
    font-weight: 700;
}

.single-recipe-page .direction-content {
    padding: var(--spacing-lg);
}

.single-recipe-page .direction-text {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
}

.single-recipe-page .direction-image-container {
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.single-recipe-page .direction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-recipe-page .recipe-nutrition {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.single-recipe-page .nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.single-recipe-page .nutrition-name {
    font-weight: 600;
    color: var(--title-color);
}

.single-recipe-page .nutrition-value {
    font-weight: 500;
    color: var(--primary-color);
}

.single-recipe-page .recipe-notes {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05));
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-color);
}

.single-recipe-page .recipe-actions-secondary {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Sidebar Styles */
.single-recipe-page .recipe-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.single-recipe-page .sidebar-section {
    background: var(--card-background);
    border-radius: var(--border-radius-large);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
}

.single-recipe-page .sidebar-title {
    font-size: var(--font-size-large);
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
}

.single-recipe-page .sidebar-recipes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.single-recipe-page .sidebar-recipe {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(var(--primary-color-rgb), 0.02);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.single-recipe-page .sidebar-recipe:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    transform: translateX(4px);
}

.single-recipe-page .sidebar-recipe-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.single-recipe-page .sidebar-recipe-info {
    flex: 1;
    min-width: 0;
}

.single-recipe-page .sidebar-recipe-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.single-recipe-page .sidebar-recipe-title a {
    color: var(--title-color);
    text-decoration: none;
}

.single-recipe-page .sidebar-recipe-title a:hover {
    color: var(--primary-color);
}

.single-recipe-page .sidebar-recipe-meta {
    font-size: var(--font-size-small);
    color: #666;
}

.single-recipe-page .sidebar-recipe-meta i {
    color: var(--primary-color);
    margin-right: 4px;
}

.single-recipe-page .sidebar-cuisines,
.single-recipe-page .sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.single-recipe-page .sidebar-cuisine,
.single-recipe-page .sidebar-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(var(--primary-color-rgb), 0.02);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.single-recipe-page .sidebar-cuisine:hover,
.single-recipe-page .sidebar-category:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    color: var(--primary-color);
    transform: translateX(4px);
}

.single-recipe-page .cuisine-name,
.single-recipe-page .category-name {
    font-weight: 500;
}

.single-recipe-page .cuisine-count,
.single-recipe-page .category-count {
    font-size: var(--font-size-small);
    color: var(--primary-color);
    font-weight: 600;
}

.single-recipe-page .sidebar-equipment {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.single-recipe-page .sidebar-equipment-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(var(--primary-color-rgb), 0.02);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.single-recipe-page .sidebar-equipment-item:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    transform: translateX(4px);
}

.single-recipe-page .sidebar-equipment-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.single-recipe-page .sidebar-equipment-info {
    flex: 1;
    min-width: 0;
}

.single-recipe-page .sidebar-equipment-name {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.single-recipe-page .sidebar-equipment-link {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.single-recipe-page .sidebar-equipment-link:hover {
    color: var(--secondary-color);
}

/* --- Recipe Reviews Section --- */
.single-recipe-page .recipe-reviews-section {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.single-recipe-page .aggregate-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}
.single-recipe-page .aggregate-rating .stars i {
    color: #FFB400;
    font-size: 1.3em;
    margin-right: 2px;
}
.single-recipe-page .aggregate-rating .rating-value {
    font-weight: 600;
    color: var(--primary-color);
}
.single-recipe-page .reviews-list {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-md);
}
.single-recipe-page .review-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #f1f1f1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.single-recipe-page .review-item:last-child {
    border-bottom: none;
}
.single-recipe-page .review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98em;
    color: #888;
}
.single-recipe-page .review-author {
    font-weight: 600;
    color: var(--title-color);
}
.single-recipe-page .review-date {
    font-size: 0.92em;
    color: #aaa;
}
.single-recipe-page .review-stars i {
    color: #FFB400;
    font-size: 1em;
}
.single-recipe-page .review-body {
    font-size: 0.98em;
    color: var(--text-color);
    margin-top: 2px;
    margin-bottom: 2px;
}
.single-recipe-page .no-reviews {
    color: #aaa;
    font-size: 0.98em;
    padding: var(--spacing-sm) 0;
}
.single-recipe-page .review-form-container {
    margin-top: var(--spacing-md);
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.single-recipe-page .review-form h3 {
    font-size: 1.1em;
    margin-bottom: var(--spacing-md);
}
.single-recipe-page .review-form .form-group {
    margin-bottom: var(--spacing-sm);
}
.single-recipe-page .review-form label {
    font-size: 0.98em;
    font-weight: 500;
    color: var(--title-color);
    margin-bottom: 2px;
    display: block;
}
.single-recipe-page .review-form .form-input,
.single-recipe-page .review-form .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 2px;
    background: #fff;
    transition: border-color 0.2s;
}
.single-recipe-page .review-form .form-input:focus,
.single-recipe-page .review-form .form-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}
.single-recipe-page .review-form button.btn {
    margin-top: var(--spacing-sm);
    min-width: 120px;
}
.single-recipe-page .review-form select.form-input {
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23FF6B35" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 12px center/18px 18px;
}
.single-recipe-page .review-form textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 180px;
}
.single-recipe-page .review-form input[type="text"],
.single-recipe-page .review-form input[type="email"] {
    font-size: 1em;
}
.single-recipe-page .review-form input[type="text"]::-webkit-input-placeholder,
.single-recipe-page .review-form input[type="email"]::-webkit-input-placeholder,
.single-recipe-page .review-form textarea::-webkit-input-placeholder {
    color: #bbb;
}
.single-recipe-page .review-form input[type="text"]::placeholder,
.single-recipe-page .review-form input[type="email"]::placeholder,
.single-recipe-page .review-form textarea::placeholder {
    color: #bbb;
}
.single-recipe-page .review-form .btn {
    font-size: 1em;
    padding: 10px 24px;
}
.single-recipe-page .review-form .btn:active {
    transform: scale(0.97);
}
.single-recipe-page .review-form .btn:focus {
    outline: 2px solid var(--primary-color);
}
.single-recipe-page .review-form .btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
.single-recipe-page .review-form .form-group:last-child {
    margin-bottom: 0;
}
.single-recipe-page .review-form select {
    cursor: pointer;
}
.single-recipe-page .show-all-reviews-btn {
    display: block;
    margin: 0 auto;
    margin-top: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    font-size: 1em;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .single-recipe-page .recipe-reviews-section {
        padding: var(--spacing-md);
    }
    .single-recipe-page .review-form-container {
        padding: var(--spacing-sm);
    }
    .single-recipe-page .reviews-list {
        max-height: 160px;
    }
}

/* Responsive Design for Recipe Page */
@media (max-width: 1024px) {
    .single-recipe-page .recipe-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .single-recipe-page .recipe-sidebar {
        order: 1;
    }
}

@media (max-width: 768px) {
    .single-recipe-page .recipe-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .single-recipe-page .recipe-hero-img {
        height: 300px;
    }
    
    .single-recipe-page .recipe-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-recipe-page .recipe-actions {
        flex-direction: column;
    }
    
    .single-recipe-page .recipe-content {
        padding: var(--spacing-lg);
    }
    
    .single-recipe-page .recipe-equipment {
        grid-template-columns: 1fr;
    }
    
    .single-recipe-page .recipe-nutrition {
        grid-template-columns: 1fr;
    }
    
    .single-recipe-page .direction-image-container {
        height: 250px;
    }
    
    .single-recipe-page .recipe-actions-secondary {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .single-recipe-page .recipe-hero {
        padding: var(--spacing-lg) 0;
    }
    
    .single-recipe-page .recipe-main {
        padding: var(--spacing-lg) 0;
    }
    
    .single-recipe-page .recipe-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .single-recipe-page .recipe-content {
        padding: var(--spacing-md);
    }
    
    .single-recipe-page .direction-image-container {
        height: 200px;
    }
} 

/* Advertisement Styles */
.advertisement {
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.advertisement iframe {
    max-width: 100%;
    height: auto;
}

.advertisement img {
    max-width: 100%;
    height: auto;
}

/* Sidebar advertisements */
.recipe-sidebar .advertisement {
    margin: 15px 0;
    padding: 10px;
}

/* Homepage advertisements */
.newsletter-section .advertisement {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Recipe page advertisements */
.recipe-content .advertisement {
    margin: 30px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .advertisement {
        margin: 15px 0;
        padding: 10px;
    }
    
    .recipe-sidebar .advertisement {
        margin: 10px 0;
        padding: 8px;
    }
}

/* Ad placeholder styling */
.ad-placeholder {
    background: #e9ecef;
    color: #6c757d;
    padding: 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    border: 2px dashed #ced4da;
}

/* Hide advertisements on print */
@media print {
    .advertisement {
        display: none !important;
    }
} 

/* Recipes Page Specific Styles */
.recipes-page .floating-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 0 0 30px 30px;
}

.recipes-page .floating-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: recipesHeroGrain 20s linear infinite;
}

@keyframes recipesHeroGrain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.recipes-page .floating-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.recipes-page .hero-text {
    margin-bottom: 30px;
}

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

.recipes-page .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 400;
}

.recipes-page .search-filters-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recipes-page .search-section {
    margin-bottom: 25px;
}

.recipes-page .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.recipes-page .search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.15);
}

.recipes-page .search-icon {
    position: absolute;
    left: 20px;
    color: #999;
    font-size: 18px;
    z-index: 2;
}

.recipes-page .search-input {
    flex: 1;
    padding: 18px 60px 18px 50px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    font-weight: 500;
}

.recipes-page .search-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.recipes-page .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.recipes-page .search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.recipes-page .filters-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 25px;
}

.recipes-page .filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    align-items: end;
}

.recipes-page .filter-group {
    display: flex;
    flex-direction: column;
}

.recipes-page .filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipes-page .filter-select {
    padding: 12px 15px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.recipes-page .clear-filters-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e8eaed;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recipes-page .clear-filters-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.recipes-page .recipes-section {
    padding: 0 0 80px;
}

.recipes-page .recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 0;
    border-bottom: 2px solid #f8f9fa;
}

.recipes-page .results-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--title-color);
}

.recipes-page .results-info span {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.recipes-page .sort-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recipes-page .sort-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

.recipes-page .sort-select {
    padding: 10px 15px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.recipes-page .recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.recipes-page .recipe-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.recipes-page .recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.recipes-page .recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.recipes-page .recipe-card:hover::before {
    left: 100%;
}

.recipes-page .recipe-image-container {
    position: relative;
    margin-bottom: 15px;
}

.recipes-page .recipe-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.recipes-page .cook-time-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.recipes-page .cook-time-badge i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

.recipes-page .recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipes-page .recipe-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.recipes-page .recipe-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.recipes-page .recipe-title a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.recipes-page .recipe-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 400;
}

.recipes-page .recipe-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
    margin-top: 12px;
}

.recipes-page .recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 16px;
    font-weight: 500;
    border: 1px solid #e8eaed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 32px;
}

.recipes-page .recipe-meta i {
    color: var(--primary-color);
    font-size: 12px;
    flex-shrink: 0;
}

.recipes-page .pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.recipes-page .pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eaed;
}

.recipes-page .page-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.recipes-page .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.recipes-page .page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Categories and Cuisines Pages Specific Styles */
.categories-page .floating-hero,
.cuisines-page .floating-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 0 0 30px 30px;
}

.categories-page .floating-hero::before,
.cuisines-page .floating-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: categoriesHeroGrain 20s linear infinite;
}

@keyframes categoriesHeroGrain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.categories-page .floating-hero-content,
.cuisines-page .floating-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-page .hero-text,
.cuisines-page .hero-text {
    margin-bottom: 30px;
}

.categories-page .hero-title,
.cuisines-page .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.categories-page .hero-subtitle,
.cuisines-page .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 400;
}

.categories-page .search-filters-container,
.cuisines-page .search-filters-container {
    /* Remove background and box styles */
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
}

.categories-page .search-section,
.cuisines-page .search-section {
    margin-bottom: 0;
}

.categories-page .search-input-wrapper,
.cuisines-page .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.categories-page .search-input-wrapper:focus-within,
.cuisines-page .search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.15);
}

.categories-page .search-icon,
.cuisines-page .search-icon {
    position: absolute;
    left: 20px;
    color: #999;
    font-size: 18px;
    z-index: 2;
}

.categories-page .search-input,
.cuisines-page .search-input {
    flex: 1;
    padding: 18px 60px 18px 50px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    font-weight: 500;
}

.categories-page .search-input::placeholder,
.cuisines-page .search-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.categories-page .search-btn,
.cuisines-page .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.categories-page .search-btn:hover,
.cuisines-page .search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.categories-page .categories-section,
.cuisines-page .cuisines-section {
    padding: 0 0 80px;
}

.categories-page .categories-header,
.cuisines-page .cuisines-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 0;
    border-bottom: 2px solid #f8f9fa;
}

.categories-page .results-info,
.cuisines-page .results-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--title-color);
}

.categories-page .results-info span,
.cuisines-page .results-info span {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.categories-page .sort-controls,
.cuisines-page .sort-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.categories-page .sort-label,
.cuisines-page .sort-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

.categories-page .sort-select,
.cuisines-page .sort-select {
    padding: 10px 15px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.categories-page .categories-grid,
.cuisines-page .cuisines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.categories-page .category-card,
.cuisines-page .cuisine-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.categories-page .category-card:hover,
.cuisines-page .cuisine-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.categories-page .category-image,
.cuisines-page .cuisine-image {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 50% !important;
    margin: 20px auto 15px !important;
    display: block !important;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.categories-page .category-content,
.cuisines-page .cuisine-content {
    flex: 1;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
}

.categories-page .category-title,
.cuisines-page .cuisine-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.categories-page .category-title a,
.cuisines-page .cuisine-title a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-page .category-title a:hover,
.cuisines-page .cuisine-title a:hover {
    color: var(--primary-color);
}

.categories-page .category-description,
.cuisines-page .cuisine-description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 400;
}

.categories-page .recipe-count-pill,
.cuisines-page .recipe-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    align-self: center;
    margin-top: 5px;
}

.categories-page .recipe-count-pill i,
.cuisines-page .recipe-count-pill i {
    font-size: 12px;
}

.categories-page .pagination-container,
.cuisines-page .pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.categories-page .pagination,
.cuisines-page .pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eaed;
}

.categories-page .page-link,
.cuisines-page .page-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.categories-page .page-link:hover,
.cuisines-page .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.categories-page .page-link.active,
.cuisines-page .page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Responsive Design for Categories and Cuisines Pages */
@media (max-width: 768px) {
    .categories-page .floating-hero,
    .cuisines-page .floating-hero {
        padding: 60px 0 40px;
        margin-bottom: 40px;
    }
    
    .categories-page .search-filters-container,
    .cuisines-page .search-filters-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .categories-page .categories-header,
    .cuisines-page .cuisines-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .categories-page .sort-controls,
    .cuisines-page .sort-controls {
        justify-content: center;
    }
    
    .categories-page .categories-grid,
    .cuisines-page .cuisines-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-page .pagination,
    .cuisines-page .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .categories-page .page-link,
    .cuisines-page .page-link {
        padding: 10px 15px;
        font-size: var(--font-size-small);
    }
}

@media (max-width: 480px) {
    .categories-page .hero-title,
    .cuisines-page .hero-title {
        font-size: 2rem;
    }
    
    .categories-page .hero-subtitle,
    .cuisines-page .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .categories-page .search-input,
    .cuisines-page .search-input {
        padding: 15px 50px 15px 45px;
        font-size: var(--font-size-base);
    }
    
    .categories-page .search-btn,
    .cuisines-page .search-btn {
        width: 40px;
        height: 40px;
    }
} 

/* Responsive Design for All Pages */
@media (max-width: 1200px) {
    .recipes-page .recipes-grid,
    .categories-page .categories-grid,
    .cuisines-page .cuisines-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .recipes-page .floating-hero,
    .categories-page .floating-hero,
    .cuisines-page .floating-hero {
        padding: 80px 0 60px;
        margin-bottom: 60px;
    }
    
    .recipes-page .search-filters-container,
    .categories-page .search-filters-container,
    .cuisines-page .search-filters-container {
        padding: 30px;
        margin: 0 20px;
    }
    
    .recipes-page .filters-row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .recipes-page .recipes-grid,
    .categories-page .categories-grid,
    .cuisines-page .cuisines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .recipes-page .floating-hero,
    .categories-page .floating-hero,
    .cuisines-page .floating-hero {
        padding: 60px 0 40px;
        margin-bottom: 40px;
        border-radius: 0 0 30px 30px;
    }
    
    .recipes-page .hero-title,
    .categories-page .hero-title,
    .cuisines-page .hero-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 20px;
    }
    
    .recipes-page .hero-subtitle,
    .categories-page .hero-subtitle,
    .cuisines-page .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    
    .recipes-page .search-filters-container,
    .categories-page .search-filters-container,
    .cuisines-page .search-filters-container {
        padding: 25px;
        margin: 0 15px;
        border-radius: 20px;
    }
    
    .recipes-page .search-section,
    .categories-page .search-section,
    .cuisines-page .search-section {
        margin-bottom: 25px;
    }
    
    .recipes-page .search-input,
    .categories-page .search-input,
    .cuisines-page .search-input {
        padding: 18px 60px 18px 50px;
        font-size: 1rem;
    }
    
    .recipes-page .search-btn,
    .categories-page .search-btn,
    .cuisines-page .search-btn {
        width: 45px;
        height: 45px;
    }
    
    .recipes-page .filters-section {
        padding-top: 25px;
    }
    
    .recipes-page .filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recipes-page .filter-select,
    .categories-page .sort-select,
    .cuisines-page .sort-select {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .recipes-page .clear-filters-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .recipes-page .recipes-header,
    .categories-page .categories-header,
    .cuisines-page .cuisines-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    .recipes-page .sort-controls,
    .categories-page .sort-controls,
    .cuisines-page .sort-controls {
        justify-content: center;
    }
    
    .recipes-page .results-info,
    .categories-page .results-info,
    .cuisines-page .results-info {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .recipes-page .recipes-grid,
    .categories-page .categories-grid,
    .cuisines-page .cuisines-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }
    
    .recipes-page .recipe-card,
    .categories-page .category-card,
    .cuisines-page .cuisine-card {
        border-radius: 20px;
    }
    
    .recipes-page .recipe-content,
    .categories-page .category-content,
    .cuisines-page .cuisine-content {
        padding: 25px;
    }
    
    .recipes-page .recipe-title,
    .categories-page .category-title,
    .cuisines-page .cuisine-title {
        font-size: 1.3rem;
    }
    
    .recipes-page .pagination,
    .categories-page .pagination,
    .cuisines-page .pagination {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px 20px;
        border-radius: 40px;
    }
    
    .recipes-page .page-link,
    .categories-page .page-link,
    .cuisines-page .page-link {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .recipes-page .floating-hero,
    .categories-page .floating-hero,
    .cuisines-page .floating-hero {
        padding: 50px 0 30px;
        margin-bottom: 30px;
    }
    
    .recipes-page .hero-title,
    .categories-page .hero-title,
    .cuisines-page .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .recipes-page .hero-subtitle,
    .categories-page .hero-subtitle,
    .cuisines-page .hero-subtitle {
        font-size: 1rem;
    }
    
    .recipes-page .search-filters-container,
    .categories-page .search-filters-container,
    .cuisines-page .search-filters-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .recipes-page .search-input,
    .categories-page .search-input,
    .cuisines-page .search-input {
        padding: 15px 50px 15px 45px;
        font-size: 0.95rem;
    }
    
    .recipes-page .search-icon,
    .categories-page .search-icon,
    .cuisines-page .search-icon {
        left: 20px;
        font-size: 18px;
    }
    
    .recipes-page .search-btn,
    .categories-page .search-btn,
    .cuisines-page .search-btn {
        width: 40px;
        height: 40px;
        right: 5px;
    }
    
    .recipes-page .filter-select,
    .categories-page .sort-select,
    .cuisines-page .sort-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .recipes-page .clear-filters-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .recipes-page .recipe-card,
    .categories-page .category-card,
    .cuisines-page .cuisine-card {
        border-radius: 15px;
    }
    
    .recipes-page .recipe-content,
    .categories-page .category-content,
    .cuisines-page .cuisine-content {
        padding: 20px;
    }
    
    .recipes-page .recipe-title,
    .categories-page .category-title,
    .cuisines-page .cuisine-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .recipes-page .recipe-description,
    .categories-page .category-description,
    .cuisines-page .cuisine-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .recipes-page .recipe-meta {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 0.8rem;
    }
    
    .recipes-page .recipe-meta span {
        padding: 6px 10px;
        border-radius: 18px;
        min-height: 32px;
    }
    
    .categories-page .recipe-count-pill,
    .cuisines-page .recipe-count-pill {
        padding: 10px 16px;
        border-radius: 25px;
    }
    
    .recipes-page .pagination,
    .categories-page .pagination,
    .cuisines-page .pagination {
        padding: 12px 15px;
        gap: 5px;
    }
    
    .recipes-page .page-link,
    .categories-page .page-link,
    .cuisines-page .page-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .recipes-page .floating-hero,
    .categories-page .floating-hero,
    .cuisines-page .floating-hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
        margin-bottom: 20px;
        border-radius: 0;
    }
    
    .recipes-page .hero-title,
    .categories-page .hero-title,
    .cuisines-page .hero-title {
        color: black !important;
        font-size: 2rem;
    }
    
    .recipes-page .hero-subtitle,
    .categories-page .hero-subtitle,
    .cuisines-page .hero-subtitle {
        color: #333 !important;
    }
    
    .recipes-page .search-filters-container,
    .categories-page .search-filters-container,
    .cuisines-page .search-filters-container {
        display: none;
    }
    
    .recipes-page .recipe-card,
    .categories-page .category-card,
    .cuisines-page .cuisine-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .recipes-page .pagination,
    .categories-page .pagination,
    .cuisines-page .pagination {
        display: none;
    }
}

/* Page Builder Elements Styles */
.element-heading-wrapper,
.element-paragraph-wrapper,
.element-button-wrapper,
.element-image-wrapper {
    margin-bottom: 2rem;
    padding: 0 10px;
}

/* Responsive margins for mobile */
@media (max-width: 768px) {
    .element-heading-wrapper,
    .element-paragraph-wrapper,
    .element-button-wrapper,
    .element-image-wrapper {
        padding: 0 10px;
    }
}

/* Heading Elements */
.element-heading {
    font-family: var(--title-font, 'Poppins', sans-serif);
    color: var(--title-color, #2c3e50);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

.element-heading h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.element-heading h2 {
    font-size: 2rem;
    font-weight: 600;
}

.element-heading h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.element-heading h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.element-heading h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.element-heading h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Paragraph Elements */
.element-paragraph {
    font-family: var(--text-font, 'Inter', sans-serif);
    color: var(--text-color, #555);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Button Elements */
.element-button-wrapper {
    text-align: center;
}

.element-button-wrapper .btn {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.element-button-wrapper .btn-primary {
    background: var(--primary-color, #e74c3c);
    color: white;
}

.element-button-wrapper .btn-primary:hover {
    background: var(--primary-hover, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.element-button-wrapper .btn-secondary {
    background: var(--secondary-color, #95a5a6);
    color: white;
}

.element-button-wrapper .btn-secondary:hover {
    background: var(--secondary-hover, #7f8c8d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.element-button-wrapper .btn-outline {
    background: transparent;
    color: var(--primary-color, #e74c3c);
    border: 2px solid var(--primary-color, #e74c3c);
}

.element-button-wrapper .btn-outline:hover {
    background: var(--primary-color, #e74c3c);
    color: white;
    transform: translateY(-2px);
}

/* Image Elements */
.element-image-wrapper {
    text-align: center;
}

.element-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.element-image-wrapper img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.element-image-wrapper a {
    display: inline-block;
    text-decoration: none;
}

/* Recipe Container */
.recipe-container {
    margin: 2rem 0;
}

.recipe-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.recipe-card .recipe-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.recipe-card .recipe-content {
    padding: 1.5rem;
}

.recipe-card .recipe-content h3 {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.recipe-card .recipe-content h3 a {
    color: var(--title-color, #2c3e50);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recipe-card .recipe-content h3 a:hover {
    color: var(--primary-color, #e74c3c);
}

.recipe-card .recipe-content p {
    color: var(--text-color, #555);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.recipe-card .recipe-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

.recipe-card .recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Category Container */
.category-container {
    margin: 2rem 0;
}

.category-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-card .category-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .category-content {
    flex: 1;
}

.category-card .category-content h3 {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.category-card .category-content h3 a {
    color: var(--title-color, #2c3e50);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card .category-content h3 a:hover {
    color: var(--primary-color, #e74c3c);
}

.category-card .recipe-count {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    background: var(--light-bg, #f8f9fa);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* Cuisine Container */
.cuisine-container {
    margin: 2rem 0;
}

.cuisine-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.cuisine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cuisine-card .cuisine-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.cuisine-card .cuisine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cuisine-card .cuisine-content {
    flex: 1;
}

.cuisine-card .cuisine-content h3 {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cuisine-card .cuisine-content h3 a {
    color: var(--title-color, #2c3e50);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cuisine-card .cuisine-content h3 a:hover {
    color: var(--primary-color, #e74c3c);
}

.cuisine-card .recipe-count {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    background: var(--light-bg, #f8f9fa);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* FAQ Container */
.faq-container {
    margin: 2rem 0;
}

.accordion-item {
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-weight: 600;
    color: var(--title-color, #2c3e50);
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: var(--light-bg, #f8f9fa);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color, #e74c3c);
    color: white;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1rem 1.5rem;
    background: white;
    font-family: var(--text-font, 'Inter', sans-serif);
    color: var(--text-color, #555);
    line-height: 1.6;
}

/* Divider Element */
.element-divider {
    border: none;
    height: 1px;
    background: var(--border-color, #e9ecef);
    margin: 2rem 0;
}

/* Spacer Element */
.element-spacer {
    width: 100%;
}

/* Responsive Design for Page Builder Elements */
@media (max-width: 768px) {
    .element-heading h1 {
        font-size: 2rem;
    }
    
    .element-heading h2 {
        font-size: 1.5rem;
    }
    
    .element-heading h3 {
        font-size: 1.25rem;
    }
    
    .recipe-card .recipe-image {
        height: 150px;
    }
    
    .recipe-card .recipe-content {
        padding: 1rem;
    }
    
    .category-card,
    .cuisine-card {
        padding: 0.75rem;
    }
    
    .category-card .category-image,
    .cuisine-card .cuisine-image {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }
    
    .element-button-wrapper .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles for Page Builder Elements */
@media print {
    .element-button-wrapper,
    .element-image-wrapper {
        page-break-inside: avoid;
    }
    
    .recipe-card,
    .category-card,
    .cuisine-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .accordion-button::after {
        display: none;
    }
    
    .accordion-collapse {
        display: block !important;
    }
} 

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .container-grid {
        grid-template-columns: 1fr;
    }
    
    body:not(.categories-page):not(.cuisines-page) .categories-grid,
    body:not(.categories-page):not(.cuisines-page) .cuisines-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
    
    body:not(.categories-page):not(.cuisines-page) .category-card,
    body:not(.categories-page):not(.cuisines-page) .cuisine-card {
        padding: var(--spacing-lg);
    }
    
    body:not(.categories-page):not(.cuisines-page) .category-image,
    body:not(.categories-page):not(.cuisines-page) .cuisine-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    body:not(.categories-page):not(.cuisines-page) .recipe-count-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    body:not(.categories-page):not(.cuisines-page) .categories-grid,
    body:not(.categories-page):not(.cuisines-page) .cuisines-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    body:not(.categories-page):not(.cuisines-page) .category-image,
    body:not(.categories-page):not(.cuisines-page) .cuisine-image {
        width: 80px !important;
        height: 80px !important;
    }
} 

@media (max-width: 480px) {
    .recipes-page .recipe-meta {
        grid-template-columns: 1fr;
        gap: 3px;
        font-size: 0.7rem;
    }
    .recipes-page .recipe-meta span {
        padding: 4px 6px;
        border-radius: 14px;
        min-height: 24px;
    }
}

/* Single Category and Cuisine Pages */
.single-category-page .category-hero,
.single-cuisine-page .cuisine-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.single-category-page .category-hero::before,
.single-cuisine-page .cuisine-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: heroGrain 20s linear infinite;
}

.single-category-page .category-hero-content,
.single-cuisine-page .cuisine-hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.single-category-page .category-hero-image,
.single-cuisine-page .cuisine-hero-image {
    text-align: center;
}

.single-category-page .category-hero-img,
.single-cuisine-page .cuisine-hero-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--secondary-color);
}

.single-category-page .category-hero-info,
.single-cuisine-page .cuisine-hero-info {
    color: white;
}

.single-category-page .category-breadcrumb,
.single-cuisine-page .cuisine-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.single-category-page .category-breadcrumb a,
.single-cuisine-page .cuisine-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-category-page .category-breadcrumb a:hover,
.single-cuisine-page .cuisine-breadcrumb a:hover {
    color: white;
}

.single-category-page .category-breadcrumb i,
.single-cuisine-page .cuisine-breadcrumb i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.single-category-page .category-title,
.single-cuisine-page .cuisine-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: white !important;
}

.single-category-page .category-description,
.single-cuisine-page .cuisine-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95) !important;
}

.single-category-page .cuisine-meta,
.single-cuisine-page .cuisine-meta {
    display: flex;
    gap: 20px;
}

.single-category-page .category-meta-item,
.single-cuisine-page .cuisine-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.single-category-page .category-meta-item i,
.single-cuisine-page .cuisine-meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Recipes Section Header Styling */
.single-category-page .recipes-header,
.single-cuisine-page .recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.single-category-page .results-info,
.single-cuisine-page .results-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-color);
}

.single-category-page .results-info span,
.single-cuisine-page .results-info span {
    color: var(--primary-color);
    font-weight: 700;
}

.single-category-page .sort-controls,
.single-cuisine-page .sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-category-page .sort-label,
.single-cuisine-page .sort-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.single-category-page .sort-select,
.single-cuisine-page .sort-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: var(--title-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

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

/* Recipe Grid for Single Category/Cuisine Pages */
.single-category-page .recipes-grid,
.single-cuisine-page .recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.single-category-page .recipe-card,
.single-cuisine-page .recipe-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.single-category-page .recipe-card:hover,
.single-cuisine-page .recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.single-category-page .recipe-image-container,
.single-cuisine-page .recipe-image-container {
    position: relative;
    margin-bottom: 15px;
}

.single-category-page .recipe-image,
.single-cuisine-page .recipe-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.single-category-page .cook-time-badge,
.single-cuisine-page .cook-time-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.single-category-page .cook-time-badge i,
.single-cuisine-page .cook-time-badge i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

.single-category-page .recipe-content,
.single-cuisine-page .recipe-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.single-category-page .recipe-title,
.single-cuisine-page .recipe-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.single-category-page .recipe-title a,
.single-cuisine-page .recipe-title a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-category-page .recipe-title a:hover,
.single-cuisine-page .recipe-title a:hover {
    color: var(--primary-color);
}

.single-category-page .recipe-description,
.single-cuisine-page .recipe-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 400;
}

.single-category-page .recipe-meta,
.single-cuisine-page .recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: #666;
    margin-top: 12px;
}

.single-category-page .recipe-meta span,
.single-cuisine-page .recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 16px;
    font-weight: 500;
    border: 1px solid #e8eaed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 32px;
}

.single-category-page .recipe-meta i,
.single-cuisine-page .recipe-meta i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.single-category-page .no-recipes,
.single-cuisine-page .no-recipes {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 2px dashed #dee2e6;
}

.single-category-page .no-recipes i,
.single-cuisine-page .no-recipes i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
    display: block;
}

.single-category-page .no-recipes h3,
.single-cuisine-page .no-recipes h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 10px;
}

.single-category-page .no-recipes p,
.single-cuisine-page .no-recipes p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* Responsive Design for Single Category/Cuisine Pages */
@media (max-width: 1200px) {
    .single-category-page .recipes-grid,
    .single-cuisine-page .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .single-category-page .recipes-grid,
    .single-cuisine-page .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .single-category-page .category-hero-content,
    .single-cuisine-page .cuisine-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .single-category-page .category-hero-img,
    .single-cuisine-page .cuisine-hero-img {
        width: 250px;
        height: 250px;
    }

    .single-category-page .category-title,
    .single-cuisine-page .cuisine-title {
        font-size: 2.5rem;
    }

    .single-category-page .category-description,
    .single-cuisine-page .cuisine-description {
        font-size: 1rem;
    }

    .single-category-page .cuisine-meta,
    .single-cuisine-page .cuisine-meta {
        justify-content: center;
    }

    .single-category-page .category-breadcrumb,
    .single-cuisine-page .cuisine-breadcrumb {
        justify-content: center;
    }

    .single-category-page .recipes-grid,
    .single-cuisine-page .recipes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-category-page .recipes-header,
    .single-cuisine-page .recipes-header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .single-category-page .sort-controls,
    .single-cuisine-page .sort-controls {
        width: 100%;
        justify-content: center;
    }

    .single-category-page .results-info,
    .single-cuisine-page .results-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .single-category-page .category-hero,
    .single-cuisine-page .cuisine-hero {
        padding: 40px 0;
    }

    .single-category-page .category-hero-img,
    .single-cuisine-page .cuisine-hero-img {
        width: 200px;
        height: 200px;
    }

    .single-category-page .category-title,
    .single-cuisine-page .cuisine-title {
        font-size: 2rem;
    }

    .single-category-page .category-breadcrumb,
    .single-cuisine-page .cuisine-breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .single-category-page .recipe-meta,
    .single-cuisine-page .recipe-meta {
        flex-direction: column;
        gap: 6px;
    }

    .single-category-page .recipe-meta span,
    .single-cuisine-page .recipe-meta span {
        justify-content: center;
    }
}

/* Remove flex-direction: column for recipe-meta on mobile */
@media (max-width: 480px) {
    .single-category-page .recipe-meta,
    .single-cuisine-page .recipe-meta {
        flex-direction: row !important;
        gap: 6px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .single-category-page .recipe-meta span,
    .single-cuisine-page .recipe-meta span {
        justify-content: center;
        min-width: max-content;
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.8;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.section-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.section-footer .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.section-footer .btn i {
    font-size: 0.9rem;
}

/* Homepage Recipe Card Cooktime Badge */
.homepage .cooktime-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Homepage Recipe Card Meta Row */
.homepage .recipe-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 10px;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .homepage .recipe-meta {
        font-size: 0.97rem;
        gap: 7px;
    }
    .homepage .cooktime-badge {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

.categories-page .category-card {
    border-radius: var(--card-radius);
}
.cuisines-page .cuisine-card {
    border-radius: var(--card-radius);
}

.footer-section > p {
    color: #fff;
}
.footer-bottom {
    color: #fff;
}
.footer-section ul li a {
    color: #fff;
}

/* Custom HTML Element Styles */
.custom-html-wrapper {
    position: relative;
    width: 100%;
    margin: var(--spacing-lg) 0;
    padding: 0;
    border-radius: var(--border-radius);
    background: transparent;
    overflow: visible;
    box-sizing: border-box;
}

.custom-html-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed rgba(255, 107, 53, 0.15);
    border-radius: calc(var(--border-radius) + 4px);
    pointer-events: none;
    z-index: -1;
    background: rgba(255, 255, 255, 0.02);
}

.custom-html-wrapper:hover::before {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.custom-html-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    /* Ensure basic typography and box model work */
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

.custom-html-content * {
    /* Don't reset everything, just ensure box-sizing works */
    box-sizing: border-box;
}

.custom-html-content input,
.custom-html-content button,
.custom-html-content textarea,
.custom-html-content select {
    /* Restore basic form styling */
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.custom-html-content button {
    cursor: pointer;
    border: none;
    outline: none;
}

.custom-html-content input[type="text"],
.custom-html-content input[type="number"] {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
}

/* Ensure custom HTML content doesn't affect global styles */
.custom-html-wrapper * {
    box-sizing: border-box;
}

/* Custom HTML wrapper - only provides visual border, no styling interference */
.custom-html-wrapper {
    position: relative;
    width: 100%;
    margin: var(--spacing-lg) 0;
    padding: 0;
    border-radius: var(--border-radius);
    background: transparent;
    overflow: visible;
    box-sizing: border-box;
}

.custom-html-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.custom-html-wrapper iframe {
    max-width: 100%;
    display: block;
}

.custom-html-wrapper video {
    max-width: 100%;
    height: auto;
    display: block;
}

.custom-html-wrapper canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.custom-html-wrapper table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.custom-html-wrapper pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.custom-html-wrapper code {
    max-width: 100%;
    word-wrap: break-word;
}

/* Responsive adjustments for custom HTML */
@media (max-width: 768px) {
    .custom-html-wrapper {
        margin: var(--spacing-md) 0;
        width: 100%;
    }
    
    .custom-html-wrapper::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    /* Only apply max-width to media elements, not form elements */
    .custom-html-wrapper img,
    .custom-html-wrapper iframe,
    .custom-html-wrapper video,
    .custom-html-wrapper canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .custom-html-wrapper table {
        max-width: 100% !important;
        overflow-x: auto;
        display: block;
    }
    
    .custom-html-wrapper pre {
        max-width: 100% !important;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .custom-html-wrapper {
        margin: var(--spacing-sm) 0;
    }
    
    .custom-html-wrapper::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
    }
}

/* Related Recipes Section */
.recipe-related-section {
    margin: var(--spacing-xl) 0;
}

.related-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.related-recipe-card {
    background: var(--card-background);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e1e5e9;
}

.related-recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.related-recipe-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-recipe-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.related-recipe-content {
    padding: var(--spacing-lg);
}

.related-recipe-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.related-recipe-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-small);
    color: #666;
}

.related-recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-recipe-meta i {
    color: var(--primary-color);
}

.related-recipe-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.recipe-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.cuisine-tag {
    background: rgba(247, 147, 30, 0.1);
    color: var(--secondary-color);
}

/* Responsive Related Recipes */
@media (max-width: 768px) {
    .related-recipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .related-recipe-content {
        padding: var(--spacing-md);
    }
    
    .related-recipe-title {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .related-recipes-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .related-recipe-image {
        height: 160px;
    }
    
    .related-recipe-content {
        padding: var(--spacing-sm);
    }
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.load-more-related {
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-related:hover {
    background: var(--primary-color);
    color: white;
}

.load-more-related:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.recipe-count {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 4px;
}

/* Admin Panel Related Recipes */
.related-recipes-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.bidirectional-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.bidirectional-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.bidirectional-checkbox span {
    user-select: none;
}