/* Magazine-Style Food Detail Page Styles */

/* Import Oswald font for headlines */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700;800;900&display=swap');

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Page animations */
.food-detail-page {
    animation: fadeInUp 0.8s ease-out;
}

/* Magazine-style typography */
.magazine-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

/* Decorative elements */
.decorative-circle {
    animation: float 6s ease-in-out infinite;
}

/* Restaurant card hover effects */
.restaurant-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.restaurant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.restaurant-card:hover::before {
    left: 100%;
}

.restaurant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Map container styling */
#map {
    position: relative;
    z-index: 1;
}

/* Custom map popup */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: none;
}

.leaflet-popup-tip {
    background: white;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
}

/* Custom marker styling */
.custom-marker {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading animation */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Section dividers */
.section-divider {
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    height: 2px;
    margin: 2rem 0;
}

/* Pagination styling */
.pagination-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.3s;
}

.pagination-btn:hover::before {
    left: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .magazine-heading {
        font-size: 3rem !important;
        line-height: 1.1;
    }
    
    #map {
        height: 300px !important;
    }
    
    .restaurant-card {
        margin-bottom: 1rem;
    }
    
    .decorative-circle {
        display: none;
    }
    
    /* Adjust padding for mobile */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    #map {
        height: 400px;
    }
    
    .magazine-heading {
        font-size: 4rem;
    }
}

/* Print styles */
@media print {
    .restaurant-card,
    #map,
    .pagination-btn {
        break-inside: avoid;
    }
    
    .decorative-circle {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .restaurant-card {
        border: 2px solid #000 !important;
    }
    
    .bg-red-500 {
        background: #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .restaurant-card:hover {
        transform: none !important;
    }
}

/* Focus styles for accessibility */
.restaurant-card:focus,
.pagination-btn:focus,
button:focus,
a:focus {
    outline: 3px solid #ef4444;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .food-detail-page {
        background-color: #111827;
        color: white;
    }
    
    .restaurant-card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .text-gray-900 {
        color: #f9fafb !important;
    }
    
    .text-gray-700 {
        color: #d1d5db !important;
    }
    
    .text-gray-600 {
        color: #9ca3af !important;
    }
    
    .bg-gray-50 {
        background-color: #111827 !important;
    }
    
    .bg-white {
        background-color: #1f2937 !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}
