/* Custom styles for Taj Indian Restaurant */

/* Hero Slideshow Styles */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(1.05);
    filter: blur(0.5px);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

.hero-slide.zoom-out {
    transform: scale(1.02);
}

/* Slide Indicators */
.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slide-indicator.active {
    background-color: rgba(255, 165, 0, 0.9);
    border-color: rgba(255, 165, 0, 1);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Text Animation */
.hero-text-fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-text-fade.active {
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-slide {
        background-position: 65% center;
        filter: blur(0.3px);
    }
    
    .hero-slide.active {
        filter: blur(0px);
    }
    
    .slide-indicator {
        width: 10px;
        height: 10px;
    }
    
    #hero-slideshow {
        min-height: 100vh;
    }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #FFFFFF;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #EA580C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F97316;
}

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Mobile menu fixes */
@media (max-width: 768px) {
    /* Force display for all menu sections */
    .menu-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .menu-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .menu-item-container {
        display: block !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        background-color: #f9fafb !important;
        border-radius: 0.5rem !important;
    }
    
    .menu-item-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    
    .menu-item-text {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .menu-item-text h3 {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
        color: #374151 !important;
    }
    
    .menu-item-text p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        color: #6b7280 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .menu-price {
        font-size: 1.125rem !important;
        font-weight: bold !important;
        color: #d97706 !important;
        align-self: flex-end !important;
        width: auto !important;
    }
    
    /* Section headers */
    .menu-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    /* Container spacing */
    .menu-section-spacing {
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }
}

/* Button hover effects */
.btn-primary {
    background-color: #d97706;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #d97706;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #d97706;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #d97706;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

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

/* Menu item animations */
.menu-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    border-left-color: #d97706;
    background-color: #fff7ed;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d97706;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation styles */
.form-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Custom checkbox styles */
input[type="checkbox"] {
    accent-color: #d97706;
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 300px;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section background pattern */
.hero-pattern {
    background-image: 
        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.1) 0%, transparent 50%);
}

/* Spice colors for accents */
.text-turmeric { color: #f59e0b; }
.text-paprika { color: #dc2626; }
.text-cumin { color: #92400e; }
.text-cardamom { color: #059669; }

.bg-turmeric { background-color: #f59e0b; }
.bg-paprika { background-color: #dc2626; }
.bg-cumin { background-color: #92400e; }
.bg-cardamom { background-color: #059669; }

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: white;
    }
    
    .text-gray-600 {
        color: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(45deg, #d97706, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive design improvements */
@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #d97706;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Custom selection colors */
::selection {
    background-color: #fbbf24;
    color: #1f2937;
}

::-moz-selection {
    background-color: #fbbf24;
    color: #1f2937;
}
