/* Premium Booking System - Ultra Modern Design */

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

:root {
    --primary: #FF6B35;
    --primary-dark: #E85D2F;
    --primary-light: #FFE4DB;
    --secondary: #1A1F36;
    --text-primary: #1A1F36;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gradient: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-dark: linear-gradient(135deg, #1A1F36 0%, #2D3561 100%);
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    z-index: -1;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Container */
.premium-container {
    width: 100%;
    margin: 0 auto;
    /* padding: 0 15px; */
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Language Selector */
.lang-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.lang-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.lang-float img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.lang-float::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lang-float:active::after {
    width: 100px;
    height: 100px;
}

/* Hero Carousel Section */
.hero-section {
    margin: 0;
    margin-bottom: 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.carousel-wrapper {
    position: relative;
    height: 450px;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 250px;
    }
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Hide carousel controls */
.carousel-nav,
.carousel-dots,
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: none !important;
}

/* Auto-transition carousel */
.carousel-slide {
    transition: opacity 1s ease-in-out;
}

.carousel-item {
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

/* Restaurant Info Bar - Minimal */
.restaurant-bar {
    background: var(--bg-primary);
    padding: 12px 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.restaurant-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.restaurant-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.restaurant-logo-small {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.restaurant-title-small {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.restaurant-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.restaurant-time i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .restaurant-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .restaurant-title-small {
        font-size: 1.1rem;
    }
}

/* Categories Section */
.categories-wrapper {
    margin-bottom: 20px;
    position: relative;
    padding: 0 15px;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.categories-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.categories-scroll {
    position: relative;
    overflow: hidden;
}

.categories-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.categories-track::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.category-chip.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.category-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-chip:active::before {
    width: 100px;
    height: 100px;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.view-switch {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.view-option {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.view-option.active {
    background: var(--bg-primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.view-option svg {
    width: 18px;
    height: 18px;
}

/* Services Grid */
.services-section {
    margin-bottom: 30px;
    padding: 0 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 15px;
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Service Card */
.service-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

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

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

.service-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--glass);
    padding: 8px 15px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.service-body {
    padding: 20px;
}

.service-header {
    margin-bottom: 12px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.service-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.service-price-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.book-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.book-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.book-btn:active::before {
    width: 100px;
    height: 100px;
}

/* List View */
.services-grid.list-view {
    grid-template-columns: 1fr;
}

.services-grid.list-view .service-card {
    display: flex;
    flex-direction: row;
    height: 180px;
}

.services-grid.list-view .service-image {
    width: 280px;
    height: 100%;
}

.services-grid.list-view .service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services-grid.list-view .service-footer {
    margin-top: 15px;
    padding-top: 15px;
}

@media (max-width: 768px) {
    .services-grid.list-view .service-card {
        flex-direction: column;
        height: auto;
    }
    
    .services-grid.list-view .service-image {
        width: 100%;
        height: 200px;
    }
}

/* Loading Animation */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Footer */
.premium-footer {
    background: var(--gradient-dark);
    color: white;
    padding: 60px 0 40px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23F9FAFB' d='M0,50 C360,100 720,0 1440,50 L1440,0 L0,0 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* RTL Support */
[dir="rtl"] .restaurant-header,
[dir="rtl"] .service-footer,
[dir="rtl"] .meta-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .categories-track {
    direction: rtl;
}

[dir="rtl"] .service-card {
    direction: rtl;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Ensure service cards are visible */
.service-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .premium-container {
        /* padding: 0 15px; */
    }
}

@media (max-width: 768px) {
    .restaurant-info h1 {
        font-size: 2rem;
    }
    
    .restaurant-card {
        padding: 25px;
    }
    
    .lang-float {
        width: 50px;
        height: 50px;
        top: 20px;
        right: 20px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev { left: 15px; }
    .carousel-next { right: 15px; }
}

@media (max-width: 480px) {
    .restaurant-header {
        flex-direction: column;
        text-align: center;
    }
    
    .restaurant-meta {
        justify-content: center;
    }
    
    .categories-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .view-controls {
        justify-content: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1F2937;
        --bg-secondary: #111827;
        --bg-tertiary: #374151;
        --text-primary: #F9FAFB;
        --text-secondary: #D1D5DB;
        --text-light: #9CA3AF;
        --border: #374151;
    }
    
    .glass {
        background: rgba(31, 41, 55, 0.7);
    }
    
    .carousel-nav {
        background: rgba(31, 41, 55, 0.9);
    }
}