:root {
    --primary: #FF6B35;
    --secondary: #F7931E;
    --success: #4ECDC4;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --dark: #2C3E50;
    --light: #ECF0F1;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.3);
}

[data-theme="dark"] {
    --primary: #FF8C5A;
    --secondary: #FFB84D;
    --dark: #1A1A2E;
    --light: #16213E;
    --text: #EAEAEA;
    --bg: #0F0F1E;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #2C3E50;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: #EAEAEA;
}

/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border: none !important;
    padding: 1rem 0;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 46, 0.95) !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: #2C3E50 !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--gradient-5);
    color: white !important;
}

/* Search Bar */
.header-search-input {
    border-radius: 50px;
    border: 2px solid transparent;
    padding: 0.7rem 1.5rem;
    background: rgba(236, 240, 241, 0.8);
    transition: all 0.3s ease;
}

.header-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    background: white;
}

/* Main Content Area */
.main-wrapper {
    min-height: calc(100vh - 200px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 1.5rem auto;
    max-width: 1400px;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

/* Larger padding for desktop */
@media (min-width: 1400px) {
    .main-wrapper {
        margin: 2rem auto;
        padding: 2rem;
    }
}

/* Full Height Pages - Login, Contact, Lucky, Trends, World */
.main-wrapper.full-height {
    min-height: auto;
    display: block;
}

.main-wrapper.full-height .container {
    width: 100%;
    max-height: none;
    overflow-y: visible;
    padding: 1rem;
}

/* Desktop: Optimize spacing */
@media (min-width: 993px) {
    .main-wrapper.full-height {
        min-height: auto;
        display: block;
        padding: 1.5rem;
    }
    
    /* Reduce hero margins */
    .main-wrapper.full-height .text-center.mb-4,
    .main-wrapper.full-height .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Optimize card spacing */
    .main-wrapper.full-height .card {
        margin-bottom: 1.5rem;
    }
}

/* Large screens - more breathing room */
@media (min-width: 1600px) {
    .main-wrapper.full-height {
        padding: 2rem;
    }
}

/* Responsive adjustments for full-height */
@media (max-width: 992px) {
    .main-wrapper.full-height {
        min-height: auto;
        padding: 1rem;
        display: block;
    }
    
    .main-wrapper.full-height .container {
        max-height: none;
        overflow-y: visible;
        padding: 0.5rem;
    }
}

[data-theme="dark"] .main-wrapper {
    background: rgba(26, 26, 46, 0.95);
}

@media (max-width: 768px) {
    .main-wrapper {
        margin: 1rem;
        padding: 1rem;
        border-radius: 16px;
    }
}

/* Recipe Cards - Ultra Modern */
.recipe-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

.recipe-card:hover::before {
    opacity: 0.1;
}

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

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

.recipe-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recipe-card .card-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

/* Badges - Modern & Colorful */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-gradient-1 { 
    background: var(--gradient-1); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-gradient-2 { 
    background: var(--gradient-2); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-gradient-3 { 
    background: var(--gradient-3); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-gradient-4 { 
    background: var(--gradient-4); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-gradient-5 { 
    background: var(--gradient-5); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-gradient-6 { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-gradient-7 { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-gradient-8 { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
    color: white; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Buttons - Modern Style */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-success {
    background: var(--gradient-4);
    color: white;
}

.btn-danger {
    background: var(--gradient-2);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* Sidebar Filter - Modern Glass Effect */
.filter-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar styling for filter sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

[data-theme="dark"] .filter-sidebar {
    background: rgba(22, 33, 62, 0.95);
}

.filter-sidebar h5 {
    background: var(--gradient-5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Difficulty Button Group - Prevent overflow */
.filter-sidebar .btn-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}

.filter-sidebar .btn-group .btn {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.4rem 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive button group */
@media (max-width: 1400px) {
    .filter-sidebar .btn-group .btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.25rem;
    }
}

@media (max-width: 1200px) {
    .filter-sidebar .btn-group {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .filter-sidebar .btn-group .btn {
        flex: 0 0 calc(50% - 0.125rem);
        border-radius: 8px !important;
        margin-bottom: 0;
    }
}

.form-select, .form-control {
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.1);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* Footer - Modern Gradient */
footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Loading Animation */
.spinner-border {
    border-width: 3px;
}

/* Page Transitions */
.page-enter {
    animation: fadeInUp 0.6s ease;
}

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

/* Alert Messages - Modern */
.alert {
    border-radius: 16px;
    border: none;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.9), rgba(56, 249, 215, 0.9));
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(245, 87, 108, 0.9));
    color: white;
}

/* Responsive Improvements */
@media (max-width: 992px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .recipe-card img {
        height: 200px;
    }
    
    .header-search-input {
        width: 100%;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .recipe-card img {
        height: 180px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Country Cards - Special */
.country-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.country-card:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.country-card .flag {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

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

/* Theme Toggle Button */
#theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-3);
    border: none;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

#theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

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

/* ==================== ADMIN PANEL STYLES ==================== */

.admin-layout {
    background: #f5f7fa;
    min-height: 100vh;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-header .logo {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--primary);
}

.sidebar-nav .nav-item.active {
    background: rgba(255,107,53,0.2);
    color: white;
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 1rem 0;
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2C3E50;
    cursor: pointer;
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f5f7fa;
    border-radius: 50px;
}

.user-menu i {
    font-size: 1.5rem;
    color: var(--primary);
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

/* Dashboard Stats */
.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: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-icon.recipes { background: var(--gradient-1); }
.stat-icon.users { background: var(--gradient-3); }
.stat-icon.comments { background: var(--gradient-4); }
.stat-icon.pending { background: var(--gradient-2); }

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
}

.stat-content p {
    color: #7F8C8D;
    margin: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1.5rem;
}

/* Admin Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2C3E50;
    border-bottom: 2px solid #e9ecef;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

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

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.table-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.table-thumb-placeholder {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.7rem;
    color: #7F8C8D;
}

/* Admin Forms */
.recipe-form, .settings-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.form-text {
    display: block;
    font-size: 0.875rem;
    color: #7F8C8D;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.current-image {
    margin-bottom: 1rem;
}

.current-image .img-preview {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header > div h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header > div p {
    margin: 0;
    font-size: 0.95rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form .form-control {
    flex: 1;
    min-width: 200px;
}

/* Buttons */
.btn, .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary { background: var(--gradient-1); color: white; }
.btn-success { background: var(--gradient-4); color: white; }
.btn-danger { background: var(--gradient-2); color: white; }
.btn-info { background: var(--gradient-3); color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-warning { background: #F39C12; color: white; }

.btn:hover, .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Utility Classes */
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(67, 233, 123, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498DB;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success { background: #43E97B; color: white; }
.badge-warning { background: #F39C12; color: white; }
.badge-danger { background: #E74C3C; color: white; }
.badge-primary { background: #667eea; color: white; }
.badge-secondary { background: #6c757d; color: white; }

/* Comments List */
.comments-list {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.comment-date {
    font-size: 0.875rem;
    color: #7F8C8D;
}

.comment-text {
    color: #2C3E50;
    margin-bottom: 0.75rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

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

.page-info {
    color: #7F8C8D;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #7F8C8D;
}

.message-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.message-body {
    padding: 1rem 0;
}

.message-new {
    background: rgba(255,107,53,0.05);
    font-weight: 600;
}

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

.alert-success {
    background: linear-gradient(135deg, rgba(67,233,123,0.9), rgba(56,249,215,0.9));
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231,76,60,0.9), rgba(245,87,108,0.9));
    color: white;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-muted { color: #7F8C8D; }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-content {
        padding: 1rem;
    }
}

/* ==================== ENHANCED MOBILE RESPONSIVENESS ==================== */

/* Large Tablets and Small Laptops */
@media (max-width: 1200px) {
    .main-wrapper {
        max-width: 100%;
        margin: 1.5rem;
        padding: 1.5rem;
    }
    
    .filter-sidebar {
        margin-bottom: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    body {
        font-size: 14px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .main-wrapper {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    /* Full height adjustments */
    .main-wrapper.full-height {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .main-wrapper.full-height .container {
        max-height: none;
        overflow-y: visible;
        padding: 0.5rem;
    }
    
    /* Recipe cards */
    .recipe-card {
        margin-bottom: 1rem;
    }
    
    .recipe-card img {
        height: 220px;
    }
    
    /* Filter sidebar */
    .filter-sidebar {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        max-height: none;
        overflow-y: visible;
        position: static;
    }
    
    .filter-sidebar .btn-group {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .filter-sidebar .btn-group .btn {
        flex: 0 0 calc(50% - 0.125rem);
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    /* Country cards */
    .country-card {
        padding: 1.5rem;
    }
    
    .country-card .flag {
        font-size: 3rem;
    }
}

/* Mobile Phones (Portrait) */
@media (max-width: 768px) {
    body {
        font-size: 13px;
        padding: 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem;
    }
    
    /* Search bar in navbar */
    .navbar .d-flex {
        max-width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    .navbar .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Main wrapper */
    .main-wrapper {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .main-wrapper.full-height {
        margin: 0.5rem;
        padding: 1rem;
        min-height: auto;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    h5 {
        font-size: 1.1rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Recipe Cards */
    .recipe-card {
        margin-bottom: 1rem;
    }
    
    .recipe-card img {
        height: 200px;
    }
    
    .recipe-card .card-body {
        padding: 1rem;
    }
    
    .recipe-card .card-title {
        font-size: 1.1rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }
    
    /* Filter Sidebar */
    .filter-sidebar {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .filter-sidebar h5 {
        font-size: 1.1rem;
    }
    
    .filter-sidebar .form-label {
        font-size: 0.85rem;
    }
    
    .filter-sidebar .form-select,
    .filter-sidebar .form-control {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
    
    /* Country Cards */
    .country-card {
        padding: 1.2rem 0.8rem;
    }
    
    .country-card .flag {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .country-card h5 {
        font-size: 0.9rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer .row {
        margin-bottom: 1rem;
    }
    
    footer h5, footer h6 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    footer p, footer a {
        font-size: 0.85rem;
    }
    
    footer .social-links .btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    footer .newsletter-box {
        padding: 0.75rem !important;
    }
    
    footer .newsletter-box input {
        font-size: 0.8rem;
    }
    
    /* Contact Page */
    .contact-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Contact cards spacing */
    .contact-page .card {
        margin-bottom: 1rem;
    }
    
    .contact-page .row {
        margin-top: 1.5rem !important;
    }
    
    /* Auth Pages */
    .auth-card {
        padding: 1.5rem;
    }
    
    /* Forms */
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.85rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
}

/* Small Mobile Phones */
@media (max-width: 576px) {
    body {
        font-size: 12px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .main-wrapper {
        margin: 0.25rem;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .main-wrapper.full-height {
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    /* Typography - Extra Small */
    h1, .display-4, .display-3 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    h5 {
        font-size: 1rem !important;
    }
    
    .lead {
        font-size: 0.95rem !important;
    }
    
    /* Recipe Cards - Stack vertically */
    .recipe-card {
        margin-bottom: 0.75rem;
    }
    
    .recipe-card img {
        height: 180px;
    }
    
    .recipe-card .card-body {
        padding: 0.75rem;
    }
    
    .recipe-card .card-title {
        font-size: 1rem;
    }
    
    /* Country Cards - Smaller */
    .country-card {
        padding: 1rem 0.5rem;
    }
    
    .country-card .flag {
        font-size: 2rem;
    }
    
    .country-card h5 {
        font-size: 0.85rem;
    }
    
    /* Badges - Smaller */
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Buttons - Smaller */
    .btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.65rem 1.2rem;
    }
    
    /* Filter Sidebar - Compact */
    .filter-sidebar {
        padding: 0.75rem;
        max-height: none;
        overflow-y: visible;
        position: static;
    }
    
    .filter-sidebar h5 {
        font-size: 1rem;
    }
    
    .filter-sidebar .btn-group {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .filter-sidebar .btn-group .btn {
        flex: 1 0 auto;
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        white-space: normal;
        text-overflow: clip;
    }
    
    /* Footer - Stack columns */
    footer {
        padding: 1.5rem 0 !important;
    }
    
    footer [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    footer h5, footer h6 {
        font-size: 0.95rem !important;
    }
    
    footer p, footer a, footer .small {
        font-size: 0.8rem !important;
    }
    
    footer .social-links .btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin: 0.15rem;
    }
    
    footer .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        margin: 0.15rem;
    }
    
    /* Forms - Compact */
    .form-control {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    /* Contact Cards - Stack */
    .contact-card {
        margin-bottom: 1rem;
    }
    
    /* Lucky Button */
    #lucky-btn {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
    
    #lucky-btn i {
        font-size: 1.5rem !important;
    }
    
    /* Auth Cards */
    .auth-card {
        padding: 1rem;
    }
    
    /* Navbar Collapse */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    [data-theme="dark"] .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .main-wrapper {
        margin: 0.15rem;
        padding: 0.5rem;
    }
    
    h1, .display-4, .display-3 {
        font-size: 1.3rem !important;
    }
    
    .recipe-card img {
        height: 160px;
    }
    
    .country-card .flag {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Landscape Mode Fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .main-wrapper.full-height {
        min-height: auto;
    }
    
    .main-wrapper.full-height .container {
        max-height: none;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    footer {
        padding: 1rem 0 !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, .nav-link, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .recipe-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* Checkbox Groups for Admin Forms */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: var(--hover-bg);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-label i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Print Styles */
@media print {
    .navbar, footer, .filter-sidebar, .btn {
        display: none !important;
    }
    
    .main-wrapper {
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .favorite-btn, .share-btn, .copy-link-btn, .print-btn, 
    .rating-widget, .comments-section, .related-recipes-section {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    @page {
        margin: 1cm;
    }
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

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

/* Image loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Critical resource hints */
.link-preload {
    rel: preload;
    as: image;
}

/* Optimize font loading */
@font-face {
    font-family: 'FontAwesome';
    font-display: swap;
}

/* GPU acceleration for animations */
.recipe-card,
.btn,
.navbar,
.card {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize repaints */
.recipe-card img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Modern Image Loading States */
img {
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block;
    visibility: visible !important;
}

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

img.loaded {
    opacity: 1 !important;
    transform: scale(1);
}

img.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

img.fallback {
    opacity: 0.7;
}

/* Progressive Image Loading */
.image-container {
    position: relative;
    overflow: hidden;
    background: transparent;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container.loaded {
    background: transparent;
}

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

/* Critical Resource Hints */
.link-preload {
    rel: preload;
    as: image;
    fetchpriority: high;
}

/* Modern CSS Grid for Recipe Cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Container Queries (Modern CSS) */
@supports (container-type: inline-size) {
    .recipe-card {
        container-type: inline-size;
    }
    
    @container (min-width: 300px) {
        .recipe-card .card-title {
            font-size: 1.1rem;
        }
    }
}

/* Modern Focus States */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    img,
    .recipe-card,
    .btn {
        transition: none;
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .recipe-card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-container {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    }
    }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Critical Resource Hints */
.link-preload {
    rel: preload;
    as: image;
    fetchpriority: high;
}

/* Modern CSS Grid for Recipe Cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Container Queries (Modern CSS) */
@supports (container-type: inline-size) {
    .recipe-card {
        container-type: inline-size;
    }
    
    @container (min-width: 300px) {
        .recipe-card .card-title {
            font-size: 1.1rem;
        }
    }
}

/* Modern Focus States */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    img,
    .recipe-card,
    .btn {
        transition: none;
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .recipe-card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-container {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    }
    }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Critical Resource Hints */
.link-preload {
    rel: preload;
    as: image;
    fetchpriority: high;
}

/* Modern CSS Grid for Recipe Cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Container Queries (Modern CSS) */
@supports (container-type: inline-size) {
    .recipe-card {
        container-type: inline-size;
    }
    
    @container (min-width: 300px) {
        .recipe-card .card-title {
            font-size: 1.1rem;
        }
    }
}

/* Modern Focus States */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    img,
    .recipe-card,
    .btn {
        transition: none;
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .recipe-card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-container {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    }
    }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Critical Resource Hints */
.link-preload {
    rel: preload;
    as: image;
    fetchpriority: high;
}

/* Modern CSS Grid for Recipe Cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Container Queries (Modern CSS) */
@supports (container-type: inline-size) {
    .recipe-card {
        container-type: inline-size;
    }
    
    @container (min-width: 300px) {
        .recipe-card .card-title {
            font-size: 1.1rem;
        }
    }
}

/* Modern Focus States */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    img,
    .recipe-card,
    .btn {
        transition: none;
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .recipe-card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-container {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    }
    }
}