/* Dosya Konumu: /assets/css/style.css */

/* =============================================
   PREMIUM MODERN THEME - SADE & ŞIK TASARIM
   ============================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Custom Properties - Renk Paleti */
:root {
    /* Primary Colors - Modern & Premium */
    --primary-50: #f8fafc;
    --primary-100: #f1f5f9;
    --primary-200: #e2e8f0;
    --primary-300: #cbd5e1;
    --primary-400: #94a3b8;
    --primary-500: #64748b;
    --primary-600: #475569;
    --primary-700: #334155;
    --primary-800: #1e293b;
    --primary-900: #0f172a;
    
    /* Accent Colors */
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Neutral Colors */
    --neutral-white: #ffffff;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

h1 { font-size: 3.75rem; font-weight: 700; }
h2 { font-size: 3rem; font-weight: 600; }
h3 { font-size: 2.25rem; font-weight: 600; }
h4 { font-size: 1.875rem; font-weight: 600; }
h5 { font-size: 1.5rem; font-weight: 600; }
h6 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: var(--space-4);
    color: var(--neutral-600);
    line-height: 1.7;
}

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

a:hover {
    color: var(--accent-secondary);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

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

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--neutral-900);
}

.nav-brand img {
    transition: all var(--transition-fast);
}

.nav-brand:hover img {
    transform: scale(1.05);
}

.nav-logo {
    width: 40px;
    height: 40px;
    margin-right: var(--space-3);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

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

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--neutral-700);
    padding: var(--space-2) 0;
    transition: all var(--transition-fast);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--neutral-200);
    border-color: var(--neutral-300);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

/* Mobile Navigation */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2);
    color: var(--neutral-700);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-mobile {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) 0;
    z-index: 999;
}

.nav-mobile.active {
    display: block !important;
}

.mobile-menu-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-3);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    color: var(--neutral-700);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-weight: 500;
    border-bottom: 1px solid var(--neutral-100);
}

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

.mobile-menu-item:hover {
    background: var(--neutral-50);
    color: var(--accent-primary);
    transform: translateX(4px);
}

.mobile-menu-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-menu-item span {
    font-size: 1rem;
}

/* Main Content */
.main {
    margin-top: 0; /* Hero section header'a yapışık olsun */
}

/* Hero section özel ayarları */
.hero {
    padding-top: 88px; /* Header height kadar padding */
    margin-top: -88px; /* Header'ın altına kaymasın */
}

/* Hero Section */
.hero {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-600) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: white;
    color: var(--neutral-700);
    border: 2px solid var(--neutral-200);
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
    color: var(--neutral-900);
}

.btn-lg {
    padding: var(--space-5) var(--space-8);
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    overflow: hidden;
}

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

.card-body {
    padding: var(--space-8);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

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

.blog-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-meta {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.blog-content {
    padding: var(--space-6);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-3);
    color: var(--neutral-900);
}

.blog-excerpt {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.blog-read-more:hover {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: var(--space-20) 0 var(--space-8) 0;
}

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

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-text {
    color: var(--neutral-400);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--neutral-500);
}

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

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .nav-actions {
        gap: var(--space-2);
    }
    
    .lang-selector {
        order: -1;
    }
    
    .hero {
        padding: var(--space-16) 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .btn {
        padding: var(--space-3) var(--space-5);
    }
    
    .btn-lg {
        padding: var(--space-4) var(--space-6);
        font-size: 1rem;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Admin Panel Overrides */
.admin-wrapper {
    font-family: var(--font-primary);
}

.admin-sidebar {
    background: var(--neutral-900);
}

.admin-content {
    background: var(--neutral-50);
}

/* Form Styles */
.form-control {
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-300);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s linear infinite;
}

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

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

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

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

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

/* =============================================
   IMAGE MODAL - PREMIUM DESIGN
   ============================================= */

/* Modal Overlay */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.8) translateY(40px);
    transition: all var(--transition-normal);
    cursor: default;
}

.image-modal.active .image-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Image */
.image-modal-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

/* Modal Info */
.image-modal-info {
    padding: var(--space-6);
    background: white;
}

.image-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-3);
    font-family: var(--font-display);
}

.image-modal-description {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.image-modal-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Close Button */
.image-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Clickable Image Indicator - sadece gerçek resimler için */
.menu-item-image img:not([src*="placeholder"]):not([src*="via.placeholder"]) {
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-item-image img:not([src*="placeholder"]):not([src*="via.placeholder"]):hover::after {
    content: '\f065'; /* Font Awesome expand icon */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: white;
    opacity: 1;
    transition: all var(--transition-fast);
}

.menu-item-image img:not([src*="placeholder"]):not([src*="via.placeholder"]):hover {
    transform: scale(1.02);
}

/* Loading State */
.image-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--neutral-500);
}

.image-modal-loading .loading {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: var(--space-4);
    }
    
    .image-modal-img {
        max-height: 60vh;
        max-width: 100%;
        width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .image-modal-info {
        padding: var(--space-4);
    }
    
    .image-modal-title {
        font-size: 1.25rem;
    }
    
    .image-modal-close {
        top: var(--space-2);
        right: var(--space-2);
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Animation keyframes */
@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalHide {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
}

/* =============================================
   SMART EDGE-CROPPING - RESTAURANT OPTIMIZED
   ============================================= */

/* Hero Images - Keep main subjects centered, crop edges */
.hero img,
.hero video,
.carousel-item img,
.carousel-item video,
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Keep main subject centered */
    border-radius: var(--radius-xl);
}

/* Hero Carousel - Smart cropping for food/drink presentations */
.carousel-item {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-item img,
.carousel-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Keep drinks/food centered */
}

/* Mobile-specific: Crop from edges, keep center intact */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .carousel-item {
        min-height: 70vh;
    }
    
    .hero img,
    .hero video,
    .carousel-item img,
    .carousel-item video {
        height: 70vh;
        object-position: center center; /* Keep main subject visible */
        /* Let CSS crop from edges naturally */
    }
    
    .hero-image img {
        max-height: 400px;
        object-position: center center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }
    
    .carousel-item {
        min-height: 60vh;
    }
    
    .hero img,
    .hero video,
    .carousel-item img,
    .carousel-item video {
        height: 60vh;
        object-position: center center; /* Perfect for keeping glasses/plates intact */
    }
}

/* =============================================
   INSTAGRAM-STYLE MOBILE CARDS - 9:16 FORMAT
   ============================================= */

/* Default desktop/tablet layout (unchanged) */
.menu-item,
.product-card,
.menu-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

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

/* Default image styling */
.menu-item img,
.menu-item-image,
.menu-item-image img,
.product-image,
.food-image,
.item-image,
.menu-card img,
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-fast);
}

/* Mobile Instagram-Style Layout - 9:16 Format */
@media (max-width: 768px) {
    .menu-item,
    .product-card,
    .menu-card {
        position: relative;
        aspect-ratio: 9/16; /* Instagram story format */
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: var(--radius-2xl);
        overflow: hidden;
    }
    
    /* Full-bleed background image */
    .menu-item img,
    .menu-item-image,
    .menu-item-image img,
    .product-image,
    .food-image,
    .item-image,
    .menu-card img,
    .product-card img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        border-radius: var(--radius-2xl);
        z-index: 1;
    }
    
    /* Transparent overlay for text */
    .menu-item-content,
    .product-content,
    .menu-card-content,
    .card-body {
        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%
        );
        backdrop-filter: blur(4px);
        padding: var(--space-6);
        z-index: 2;
        border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    }
    
    /* White text with black outline */
    .menu-item h3,
    .menu-item h4,
    .menu-item .item-title,
    .product-card h3,
    .product-card h4,
    .product-card .product-title,
    .menu-card h3,
    .menu-card h4,
    .menu-card .card-title {
        color: white !important;
        text-shadow: 
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            0 0 4px rgba(0, 0, 0, 0.8);
        font-weight: 700;
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: var(--space-2);
    }
    
    /* Price styling with outline */
    .menu-item .price,
    .product-card .price,
    .menu-card .price {
        color: #FFD700 !important; /* Gold color */
        text-shadow: 
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            0 0 4px rgba(0, 0, 0, 0.8);
        font-weight: 800;
        font-size: 1.5rem;
        margin-bottom: var(--space-2);
    }
    
    /* Description text with outline */
    .menu-item p,
    .menu-item .description,
    .product-card p,
    .product-card .description,
    .menu-card p,
    .menu-card .description {
        color: white !important;
        text-shadow: 
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            0 0 2px rgba(0, 0, 0, 0.6);
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: var(--space-3);
        opacity: 0.95;
    }
    
    /* Category tags/badges */
    .menu-item .category,
    .product-card .category,
    .menu-card .category,
    .badge {
        position: absolute;
        top: var(--space-4);
        left: var(--space-4);
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        color: white;
        padding: var(--space-2) var(--space-4);
        border-radius: var(--radius-lg);
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 3;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Special indicators (vegan, gluten-free, etc.) */
    .menu-item .indicators,
    .product-card .indicators,
    .menu-card .indicators {
        position: absolute;
        top: var(--space-4);
        right: var(--space-4);
        display: flex;
        gap: var(--space-2);
        z-index: 3;
    }
    
    .indicator {
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Action buttons */
    .menu-item .btn,
    .product-card .btn,
    .menu-card .btn {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        color: var(--neutral-900) !important;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: var(--space-3) var(--space-5);
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 0.9rem;
        margin-top: var(--space-3);
        text-shadow: none;
    }
    
    .menu-item .btn:hover,
    .product-card .btn:hover,
    .menu-card .btn:hover {
        background: white;
        transform: translateY(-1px);
    }
}

/* Even smaller phones - adjust proportions */
@media (max-width: 480px) {
    .menu-item,
    .product-card,
    .menu-card {
        aspect-ratio: 9/16; /* Keep 9:16 ratio */
        margin-bottom: var(--space-4);
    }
    
    .menu-item-content,
    .product-content,
    .menu-card-content,
    .card-body {
        padding: var(--space-4);
    }
    
    .menu-item h3,
    .menu-item h4,
    .product-card h3,
    .product-card h4,
    .menu-card h3,
    .menu-card h4 {
        font-size: 1.1rem;
    }
    
    .menu-item .price,
    .product-card .price,
    .menu-card .price {
        font-size: 1.3rem;
    }
}

/* Grid Layout for Mobile Cards */
@media (max-width: 768px) {
    .menu-grid,
    .products-grid,
    .items-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
        padding: var(--space-4);
    }
}

@media (max-width: 480px) {
    .menu-grid,
    .products-grid,
    .items-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        padding: var(--space-4);
    }
}

/* Enhanced hover effects for mobile */
@media (max-width: 768px) {
    .menu-item:active,
    .product-card:active,
    .menu-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Accessibility improvements */
@media (max-width: 768px) {
    .menu-item,
    .product-card,
    .menu-card {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Focus states for accessibility */
    .menu-item:focus,
    .product-card:focus,
    .menu-card:focus {
        outline: 3px solid rgba(59, 130, 246, 0.5);
        outline-offset: 2px;
    }
}

/* Loading states for 9:16 format */
@media (max-width: 768px) {
    .menu-item img[data-loading],
    .product-card img[data-loading],
    .menu-card img[data-loading] {
        background: linear-gradient(
            45deg,
            var(--neutral-200),
            var(--neutral-300),
            var(--neutral-200)
        );
        background-size: 400% 400%;
        animation: gradientShift 2s ease-in-out infinite;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Instagram-Style Mobile Cards Complete */

/* Blog Images - Edge-crop approach */
.blog-image img,
.blog-card .blog-image img,
.post-image,
.article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center; /* Keep main subject centered */
    transition: transform var(--transition-slow);
}

@media (max-width: 768px) {
    .blog-image img,
    .blog-card .blog-image img,
    .post-image,
    .article-image {
        height: 200px;
        object-position: center center;
    }
}

@media (max-width: 480px) {
    .blog-image img,
    .blog-card .blog-image img,
    .post-image,
    .article-image {
        height: 180px;
        object-position: center center;
    }
}

/* Featured Product Images - Keep products complete */
.featured-item img,
.featured-product img,
.highlight-image,
.special-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center center; /* Keep featured items intact */
    border-radius: var(--radius-xl);
}

@media (max-width: 768px) {
    .featured-item img,
    .featured-product img,
    .highlight-image,
    .special-item img {
        height: 220px;
        object-position: center center;
    }
}

/* Gallery Images - Center-focused */
.gallery-image,
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

@media (max-width: 768px) {
    .gallery-image,
    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-image,
    .gallery-item img {
        height: 200px;
    }
}

/* Card Images - Universal edge-crop */
.card img,
.card-image,
.thumbnail {
    width: 100%;
    object-fit: cover;
    object-position: center center; /* Keep subjects centered */
    border-radius: var(--radius-lg);
}

/* Content images - Natural flow */
.content img,
.post-content img,
.article img,
.description img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}

/* Image containers - Modern approach */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Default center, edge-crop */
    transition: transform var(--transition-fast);
}

/* Enhanced hover effects */
.menu-item:hover img,
.blog-card:hover img,
.gallery-item:hover img,
.product-card:hover img {
    transform: scale(1.05);
}

/* Loading states */
img[data-loading],
img:not([src]) {
    background: var(--neutral-200);
    background-image: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: loading 1.2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* SPECIAL CASE: Vertical images (like tall glasses) */
.drink-image,
.cocktail-image,
.beverage-image,
[alt*="glass" i],
[alt*="drink" i],
[alt*="cocktail" i],
[alt*="juice" i] {
    object-position: center center !important; /* Keep drinks perfectly centered */
    object-fit: cover;
}

/* SPECIAL CASE: Round dishes/plates */
.plate-image,
.dish-image,
[alt*="plate" i],
[alt*="bowl" i],
[alt*="dish" i] {
    object-position: center center !important; /* Keep plates centered */
    object-fit: cover;
}

/* SPECIAL CASE: Coffee cups - keep them complete */
.coffee-image,
[alt*="coffee" i],
[alt*="espresso" i],
[alt*="latte" i],
[alt*="cappuccino" i] {
    object-position: center center !important; /* Perfect for coffee cups */
    object-fit: cover;
}

/* Mobile quality improvements */
@media (max-width: 768px) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .menu-item,
    .blog-card,
    .product-card {
        contain: layout style;
    }
}

/* Prevent extreme crops on very small screens */
@media (max-width: 480px) {
    .hero-content img {
        max-height: 300px;
        object-position: center center;
    }
    
    .grid img {
        min-height: 150px;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
    loading: lazy;
}

/* High DPI support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Lazy loading states */
.image-lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.image-lazy.loaded {
    opacity: 1;
}

/* Edge-Crop Mobile Optimization Complete - Restaurant Perfect */
