/* ============================================
   Lean Prep Kitchen - Modern CSS Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    transition: color 0.3s ease;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

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

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

.bg-light { background-color: var(--gray-50); }

.text-primary { color: var(--primary-600); }
.text-gray-600 { color: var(--gray-600); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-600);
    color: white;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

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

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background-color: var(--gray-300);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background-color: var(--gray-50);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.w-full { width: 100%; }

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.site-logo {
    height: 70px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.2));
}

.navbar-brand:hover .site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(22, 163, 74, 0.3));
}

.site-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hide site name in navbar only */
.navbar-brand .site-name {
    display: none;
}

.site-name-banner {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-600);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--gray-900);
    transition: var(--transition);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    padding: 8rem 0 6rem;
    margin-top: 4rem;
}

.hero-small {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 50%, #f0fdf4 100%);
    padding: 6rem 0 4rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-small .hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--primary-600);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--primary-600);
}

.feature-icon.large {
    width: 4rem;
    height: 4rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-600);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    overflow: hidden;
}

.article-link {
    display: block;
    color: inherit;
}

/* Article image styles moved to bottom for modern design */

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.article-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Article Page */
.article-page {
    padding: 2rem 0;
    margin-top: 4rem;
}

.article-content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.article-page-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.article-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-featured-image {
    width: 100%;
    height: 24rem;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-excerpt-large {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-body h2,
.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

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

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Rating Section */
.share-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-actions {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.share-actions h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.rating-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gray-300);
    transition: var(--transition);
}

.rating-star:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

.rating-star.active {
    color: #fbbf24;
}

.rating-star svg {
    width: 2rem;
    height: 2rem;
}

.rating-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-average {
    font-size: 1.25rem;
    font-weight: 600;
}

.rating-message {
    color: var(--primary-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Comments Section */
.comments-section {
    padding: 3rem 0;
}

.comments-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    margin-top: 1.5rem;
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.comment-content {
    color: var(--gray-700);
    white-space: pre-wrap;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    justify-content: flex-end;
}

/* Modern Button Styles */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-modern .btn-icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.3s ease;
}

.btn-modern:hover .btn-icon {
    transform: scale(1.1);
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3),
                0 2px 4px rgba(22, 163, 74, 0.2);
    border: none;
}

.btn-modern.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4),
                0 4px 8px rgba(22, 163, 74, 0.3);
}

.btn-modern.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-modern.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-modern.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-modern.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: var(--primary-50);
    color: var(--primary-800);
    border: 1px solid var(--primary-200);
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 42rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

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

.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-decoration: none;
}

.footer-logo .site-logo {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.footer-logo .site-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-600);
    transform: translateY(-2px);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Admin Styles */
.admin-body {
    background-color: var(--gray-50);
}

.admin-navbar {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.admin-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.admin-navbar-brand .site-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.15));
    transition: var(--transition);
}

.admin-navbar-brand:hover .site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(22, 163, 74, 0.25));
}

.admin-navbar-brand .site-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-navbar-menu {
    display: flex;
    gap: 1.5rem;
}

.admin-nav-link {
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
}

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

.admin-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.admin-container {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    padding: 2rem;
}

.admin-login-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 28rem;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.admin-table th:first-child {
    padding-left: 1.5rem;
}

.admin-table th:last-child {
    padding-right: 1.5rem;
}

.admin-table td {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.admin-table td:first-child {
    padding-left: 1.5rem;
}

.admin-table td:last-child {
    padding-right: 1.5rem;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.badge-gray {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.badge-green {
    background-color: var(--primary-100);
    color: var(--primary-800);
    border-color: var(--primary-200);
}

.badge-easy {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.badge-medium {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.badge-hard {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.action-buttons,
.admin-actions {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.btn-icon {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.btn-icon:hover::before {
    width: 100%;
    height: 100%;
}

.btn-icon svg {
    width: 0.875rem;
    height: 0.875rem;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.btn-icon:hover {
    background-color: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.15);
}

.btn-icon:hover svg {
    transform: scale(1.1);
}

.btn-icon:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.1);
}

.btn-icon.btn-danger {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #dc2626;
}

.btn-icon.btn-danger:hover {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.15);
}

.btn-icon.btn-danger:hover::before {
    background: rgba(220, 38, 38, 0.1);
}

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

.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.bg-blue { background-color: #3b82f6; }
.stat-icon.bg-green { background-color: var(--primary-600); }
.stat-icon.bg-purple { background-color: #a855f7; }
.stat-icon.bg-yellow { background-color: #eab308; }

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inquiry-card {
    margin-bottom: 0;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.inquiry-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.inquiry-message {
    background-color: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.inquiry-response {
    background-color: var(--primary-50);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-600);
    margin-top: 1rem;
}

.inquiry-response h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-800);
}

.inquiry-response-form {
    margin-top: 1rem;
}

.inline-form {
    display: inline;
}

.article-form {
    max-width: 56rem;
}

/* Quick Actions Tiles */
.admin-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.action-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-600);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.action-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-300);
}

.action-tile:hover::before {
    transform: scaleX(1);
}

.tile-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tile-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.tile-primary .tile-icon {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
}

.tile-secondary .tile-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.tile-info .tile-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.tile-settings .tile-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.action-tile:hover .tile-icon {
    transform: scale(1.1) rotate(5deg);
}

.tile-content {
    flex-grow: 1;
    min-width: 0;
}

.tile-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.tile-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.tile-arrow {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s;
}

.tile-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

.action-tile:hover .tile-arrow {
    color: var(--primary-600);
    transform: translateX(4px);
}

/* Legacy quick-actions for backward compatibility */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info {
    margin-top: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
}

.prose {
    max-width: none;
}

.prose p {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
    
    .admin-navbar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Article Cards with Food Images */
.article-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
}

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

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

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

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

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 5rem 0;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--gray-100);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
    fill: #fbbf24;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--primary-200);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--gray-900);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Hero Banner Section - Clean Modern Design */
.hero-banner {
    position: relative;
    min-height: 650px;
    margin-top: 4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Black opacity overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Fallback gradient if no image - green healthy theme */
.hero-banner:not([style*="background-image"]) {
    background: linear-gradient(135deg, 
        #f0fdf4 0%, 
        #dcfce7 50%, 
        #bbf7d0 100%);
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner .hero-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    padding: 4rem 2rem;
    animation: slideUp 0.8s ease-out;
}

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

.hero-banner .hero-title {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

.hero-banner .hero-title .text-primary {
    color: var(--primary-400);
    font-weight: 700;
    display: inline-block;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-banner .hero-title .text-primary::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-500));
    opacity: 0.6;
    border-radius: 2px;
    animation: underlineExpand 0.8s ease-out 1.2s both;
}

@keyframes underlineExpand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.hero-banner .hero-description {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-banner .btn-primary {
    font-family: 'Poppins', sans-serif;
    background: white;
    color: var(--primary-700);
    font-weight: 600;
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-banner .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.1), transparent);
    transition: left 0.5s;
}

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

.hero-banner .btn-primary:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-banner .btn-primary:active {
    transform: translateY(-1px);
}

.hero-banner .btn-primary .icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.hero-banner .btn-primary:hover .icon {
    transform: translateX(4px);
}

/* Enhanced Hero Section (fallback) */
.hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 50%, #f0fdf4 100%);
    padding: 8rem 0 6rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

/* Modern Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
}

/* Enhanced Feature Cards */
.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--primary-600);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
}

/* Modern CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 50%, var(--primary-800) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Enhanced Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Image Loading Animation */
.article-image img {
    opacity: 0;
    animation: fadeInImage 0.6s ease-out forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modern Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .slide-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .slide-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Gallery Section */
.image-gallery-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, var(--gray-50) 100%);
}

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

.gallery-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 300px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(22, 163, 74, 0.95) 0%, rgba(22, 163, 74, 0.7) 50%, transparent 100%);
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Stats Section with Images */
.stats-section {
    padding: 5rem 0;
    background: white;
}

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

@media (min-width: 1024px) {
    .stats-grid-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-image-card {
    text-align: center;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stat-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.stat-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-image-card:hover img {
    transform: scale(1.1);
}

.stat-image-card h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-weight: 700;
    padding: 0 1.5rem;
}

.stat-image-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: white;
}

.stats-section {
    padding: 5rem 0;
    background: white;
}

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

@media (min-width: 1024px) {
    .stats-grid-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.benefit-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.benefit-card:hover .benefit-image img {
    transform: scale(1.1);
}

.benefit-content {
    padding: 1.5rem;
}

.benefit-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.benefit-content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Popular Recipes Section */
.popular-recipes-section {
    padding: 5rem 0;
}

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

@media (min-width: 1024px) {
    .recipes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recipe-category-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 350px;
}

.recipe-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

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

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

.recipe-category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transition: background 0.3s;
}

.recipe-category-card:hover .recipe-category-content {
    background: linear-gradient(to top, rgba(22, 163, 74, 0.95) 0%, rgba(22, 163, 74, 0.7) 50%, transparent 100%);
}

.recipe-category-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.recipe-category-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.recipe-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 500px;
        margin-top: 4rem;
    }
    
    .hero-banner .hero-content {
        padding: 3rem 1.5rem;
    }
    
    .hero-banner .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-banner .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-banner .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .benefits-grid,
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-tile {
        padding: 1.25rem;
    }
    
    .tile-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .tile-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Recipe Pages Styles */
.recipe-filters {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
}

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

.recipe-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.recipe-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
}

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

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

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

.recipe-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    line-height: 1.4;
}

.recipe-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.recipe-time,
.recipe-servings {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-small {
    width: 1rem;
    height: 1rem;
}

.recipe-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-easy {
    background: var(--primary-100);
    color: var(--primary-700);
}

.difficulty-medium {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}

/* Recipe Single Page */
.recipe-page {
    padding: 4rem 0;
}

.recipe-header {
    margin-bottom: 3rem;
}

.recipe-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.recipe-page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.recipe-page-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.recipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recipe-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.recipe-stat svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-600);
}

.recipe-stat strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.recipe-stat span {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.difficulty-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.recipe-category {
    margin-bottom: 2rem;
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: 9999px;
    font-weight: 600;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.recipe-ingredients h2,
.recipe-instructions h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.ingredients-list {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 1rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.ingredient-item:last-child {
    border-bottom: none;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instruction-step {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-content {
    flex-grow: 1;
    padding-top: 0.5rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.recipe-meta-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.recipe-meta-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Legal Pages */
.legal-page {
    line-height: 1.8;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .recipe-content-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-stats {
        grid-template-columns: 1fr;
    }
    
    .recipe-page-title {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .rating-section,
    .comments-section {
        display: none;
    }
    
    .article-page {
        margin-top: 0;
    }
}

