/* Blue Restaurant Theme - Comprehensive Color Overhaul */

/* CSS Custom Properties for Blue Theme */
:root {
    /* Primary Blue Colors */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-50: #eff6ff;
    --primary-blue-100: #dbeafe;
    --primary-blue-200: #bfdbfe;
    --primary-blue-300: #93c5fd;
    --primary-blue-400: #60a5fa;
    --primary-blue-500: #3b82f6;
    --primary-blue-600: #2563eb;
    --primary-blue-700: #1d4ed8;
    --primary-blue-800: #1e40af;
    --primary-blue-900: #1e3a8a;

    /* Secondary Ocean Blues */
    --ocean-blue: #0ea5e9;
    --ocean-blue-light: #38bdf8;
    --ocean-blue-dark: #0284c7;
    
    /* Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --accent-indigo: #6366f1;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0ea5e9 100%);
    --gradient-card: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    
    /* Shadows */
    --shadow-blue: 0 4px 16px rgba(30, 64, 175, 0.15);
    --shadow-blue-hover: 0 8px 32px rgba(30, 64, 175, 0.25);
    --shadow-card: 0 2px 12px rgba(30, 64, 175, 0.08);
}

/* Body and Base Styles */
body {
    background: linear-gradient(45deg, var(--primary-blue-50) 0%, #f8fafc 100%);
    color: #1e293b;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-blue-100);
    box-shadow: 0 2px 20px rgba(30, 64, 175, 0.1);
}

.navbar-brand {
    color: var(--primary-blue) !important;
    font-weight: 700;
}

.navbar-brand svg {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
    color: var(--primary-blue-700) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--ocean-blue) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section Enhancement */
.bg-gradient {
    background: var(--gradient-hero) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Search Input Styling */
.input-group-lg .form-control {
    border: 2px solid var(--primary-blue-200);
    border-radius: 12px 0 0 12px !important;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.input-group-lg .form-control:focus {
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.input-group-lg .btn-primary {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 0 12px 12px 0 !important;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-group-lg .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue-hover);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

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

/* Category Cards */
.category-card {
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category-card .card-img-top {
    background: var(--gradient-card) !important;
    position: relative;
}

.category-card .card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-img-top::after {
    opacity: 0.1;
}

/* Restaurant Cards */
.restaurant-card {
    border-radius: 16px !important;
}

.restaurant-card .card-img-top {
    position: relative;
    overflow: hidden;
}

.restaurant-card .card-img-top img {
    transition: transform 0.4s ease;
}

.restaurant-card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-blue);
}

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

.btn-secondary {
    background: var(--primary-blue-100);
    color: var(--primary-blue-800);
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue-200);
    color: var(--primary-blue-900);
    transform: translateY(-1px);
}

/* Badges */
.badge {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
    border: none;
}

.badge.bg-secondary {
    background: var(--primary-blue-100) !important;
    color: var(--primary-blue-800) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

.badge.bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-blue-800) !important;
    backdrop-filter: blur(10px);
}

/* City Badges */
.city-badge {
    background: var(--gradient-secondary) !important;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    color: white;
}

.city-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    color: white;
}

/* Section Backgrounds */
.bg-secondary {
    background: var(--gradient-card) !important;
    border-top: 1px solid var(--primary-blue-100);
}

/* Text Colors */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-muted {
    color: var(--primary-blue-400) !important;
}

/* Rating Stars */
.rating-star {
    color: #f59e0b !important;
}

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

/* Removed category card floating animations */

/* Hover Effects for Icons */
.fi-utensils, .fi-map-pin, .fi-star-filled, .fi-camera {
    transition: all 0.3s ease;
}

.card:hover .fi-utensils {
    color: var(--ocean-blue) !important;
    transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-blue-50);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-600);
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
}

.text-decoration-none:hover {
    text-decoration: none !important;
}

/* Footer Card Enhancement */
.card-footer {
    background: var(--primary-blue-50) !important;
    border-top: 1px solid var(--primary-blue-100) !important;
}

.card-footer .text-primary {
    font-weight: 600;
    transition: all 0.3s ease;
}

.card:hover .card-footer .text-primary {
    color: var(--ocean-blue) !important;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue-900);
    font-weight: 700;
}

.display-4 {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .category-card, .restaurant-card {
        margin-bottom: 1.5rem;
    }
    
    .card:hover {
        transform: translateY(-4px);
    }
    
    .city-badge:hover {
        transform: scale(1.02);
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--ocean-blue);
    outline-offset: 2px;
}