﻿/* ========================================
   SNACKHAUS - MODERN DESIGN SYSTEM
   ======================================== */

/* ----- IMPORTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ----- ROOT VARIABLES ----- */
:root {
    /* Colors - High Contrast Light Theme (Deep Forest) */
    --primary: #1B4332;        /* Solid Deep Forest */
    --primary-dark: #081C15;
    --primary-light: #2D6A4F;
    --secondary: #52B788;      /* Solid Mint */
    --secondary-dark: #40916C; 
    --accent: #D1FAE5;
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --dark: #064E3B;
    --gray-900: #064E3B;
    --gray-800: #1B4332;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --light: #FFFBEB;
    --white: #FFFFFF;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows - Sharp and visible */
    --shadow-sm: 0 1px 2px 0 rgba(8, 28, 21, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(8, 28, 21, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(8, 28, 21, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(8, 28, 21, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ----- BASE STYLES ----- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--light);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

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

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

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

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

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

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

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

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

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

/* ----- NAVIGATION ----- */
.navbar {
    transition: all var(--transition-base);
}

header.sticky-top {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    z-index: 1050;
    border-bottom: 1px solid var(--gray-200);
}

header {
    transition: all var(--transition-base);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary) !important;
}

.navbar-brand img {
    transition: transform var(--transition-fast);
}

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

.nav-link {
    font-size: 0.95rem;
    color: var(--gray-800) !important;
    transition: color var(--transition-fast);
    font-weight: 500; /* Retained from original .nav-link */
    position: relative; /* Retained from original .nav-link */
}

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

.nav-link::after { /* Retained from original .nav-link */
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after { /* Retained from original .nav-link */
    width: 100%;
}

.no-caret::after {
    display: none !important;
}

.dropdown-menu {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.3s ease;
    z-index: 2000 !important;
}

.dropdown-item {
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    padding: 0.6rem 1.25rem !important;
}

.dropdown-item:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateX(5px);
}

/* User Dropdown Button Style */
#userDropdown {
    text-decoration: none !important;
    border: 1px solid var(--gray-200) !important;
}

#userDropdown:hover {
    background: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Header Spacing Fixes */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* ----- HERO VISUAL ----- */
.hero-visual {
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    width: 100%;
    background-image: url('../Images/tilte.png');
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-visual:hover {
    transform: scale(1.02);
}

/* ----- SECTION TITLES ----- */
.section-title {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

/* ----- FEATURE ICONS ----- */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 16px rgba(27, 67, 50, 0.15);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

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

/* ----- BUTTONS ----- */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    box-shadow: 0 4px 12px rgba(82, 183, 136, 0.2);
    color: var(--primary-dark);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 183, 136, 0.3);
}

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

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

/* ----- CARDS ----- */
.card-modern,
.summary-card,
.category-card,
.snack-card,
.contact-card,
.checkout-help,
.feature-card,
.food-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.food-card {
    padding: 0; /* Override padding for food grid items */
}

.card-modern:hover,
.summary-card:hover,
.category-card:hover,
.snack-card:hover,
.feature-card:hover,
.food-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

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

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

.price {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
}

/* ----- TESTIMONIALS ----- */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--gray-200);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary);
}

.star-rating {
    color: #FFC107;
}

/* ----- CTA & HERO SECTION ----- */
.hero-card,
.cta-section {
    background: linear-gradient(135deg, #081C15 0%, #1B4332 100%) !important;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    color: white !important;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card h1, 
.hero-card p, 
.hero-card .lead,
.cta-section h2, 
.cta-section p {
    color: white !important;
}

.cta-section {
    text-align: center;
}

.hero-card::before,
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ----- FOOTER ----- */
footer {
    background: #081C15;
    color: #cbd5e1;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
}

footer h5, footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer .nav-link-footer {
    color: #94a3b8;
    transition: all var(--transition-base);
    padding-left: 0;
}

footer .nav-link-footer:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    transition: all var(--transition-base);
}

.footer-stat-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-store-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.footer-info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.footer-info-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.footer-info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--secondary);
    color: #081C15;
    transform: translateY(-4px) rotate(8deg);
}

/* ----- UTILITIES ----- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-card {
        padding: var(--space-lg);
    }
    
    .hero-visual {
        min-height: 250px;
    }
    
    .feature-card,
    .food-card,
    .testimonial-card {
        margin-bottom: var(--space-md);
    }
}

/* ----- LEGACY SUPPORT ----- */
.snack-card__image,
.snack-detail__image {
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    margin-bottom: var(--space-md);
    min-height: 180px;
}

.category-thumb {
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    height: 120px;
}

.cart-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.empty-state {
    border-radius: var(--radius-xl);
    border: 2px dashed var(--gray-300);
    background: white;
    padding: var(--space-2xl);
}

.success-badge {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: #DCFCE7;
    color: var(--success);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
