/**
 * Wedding Services - Comprehensive Styles
 * Extracted CSS for Anniversary Booking, Catering Services, and Clothing & Attire
 * @version 1.0.0
 */

/* ============================================================================
   Animations
   ========================================================================= */

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

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

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

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

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

@keyframes fabric-flow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes color-shift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(15deg);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

.animate-pulse-custom {
    animation: pulse 2s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fabric-flow {
    animation: fabric-flow 3s ease-in-out infinite;
}

.animate-color-shift {
    animation: color-shift 4s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounce-in 0.5s ease-out forwards;
}

.animate-fade-out {
    animation: fadeIn 0.3s ease-out reverse forwards;
}

/* ============================================================================
   Gradient Text
   ========================================================================= */

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

/* ============================================================================
   Modal Container
   ========================================================================= */

.modal-container {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 12rem);
    flex: 1;
}

.modal-footer {
    flex-shrink: 0;
    background-color: #1f2937;
    border-top: 1px solid #374151;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 0.5rem;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgb(55, 65, 81);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgb(107, 114, 128);
    border-radius: 0.25rem;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgb(156, 163, 175);
}

.modal-body::-webkit-scrollbar {
    width: 0.375rem;
}

.modal-body::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 0.25rem;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 0.25rem;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================================================
   Service Cards
   ========================================================================= */

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================================================
   Step Indicators
   ========================================================================= */

.step-indicator {
    transition: all 0.3s ease;
    background-color: #4b5563;
}

.step-indicator.active {
    background: linear-gradient(135deg, #ec4899, #ef4444);
}

.step-indicator.completed {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ============================================================================
   Package Cards
   ========================================================================= */

.package-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-2px);
}

.package-card.selected {
    border-color: #ec4899 !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(239, 68, 68, 0.1));
}

/* ============================================================================
   Time Slots
   ========================================================================= */

.time-slot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.time-slot:hover {
    background-color: #374151;
}

.time-slot.selected {
    background: linear-gradient(135deg, #ec4899, #ef4444);
}

/* ============================================================================
   Calendar
   ========================================================================= */

.calendar-day {
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #374151;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #ec4899, #ef4444);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================================
   Catering Service Gradients
   ========================================================================= */

.cuisine-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.indian-gradient {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.continental-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.dessert-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* ============================================================================
   Vendor Cards
   ========================================================================= */

.vendor-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.vendor-card:hover {
    border-left-color: #f59e0b;
    transform: translateX(4px);
}

/* ============================================================================
   Menu Items
   ========================================================================= */

.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

/* ============================================================================
   Dietary Badges
   ========================================================================= */

.dietary-badge {
    transition: all 0.3s ease;
}

.dietary-badge:hover {
    transform: scale(1.1);
}

/* ============================================================================
   Progress Bar
   ========================================================================= */

.booking-progress {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* ============================================================================
   Price Card
   ========================================================================= */

.price-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: #f59e0b;
    transform: scale(1.02);
}

/* ============================================================================
   Clothing & Attire Styles
   ========================================================================= */

/* Outfit Cards */
.outfit-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.outfit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

.outfit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.outfit-card:hover::before {
    left: 100%;
}

/* Clothing Gradients */
.saree-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.lehenga-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.sherwaani-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.suit-gradient {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.anarkali-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.western-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Filter Chips */
.filter-chip {
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: scale(1.05);
}

.filter-chip.active {
    background: linear-gradient(135deg, #f2764a 0%, #e35930 100%);
    color: white;
}

/* Size Guide */
.size-guide-chart {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Fabric Swatches */
.fabric-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.fabric-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fabric-swatch.selected {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(242, 118, 74, 0.3);
}

/* Color Palette */
.color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #f2764a;
    transform: scale(1.2);
}

/* Wishlist Button */
.wishlist-btn {
    transition: all 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
}

/* Try-On Overlay */
.try-on-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Measurement Input */
.measurement-input {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Styling Tip */
.styling-tip {
    background: linear-gradient(135deg, #ddd6fe 0%, #c7d2fe 100%);
}

/* Price Range Slider */
.price-range-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #f2764a 0%, #e35930 100%);
    outline: none;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f2764a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f2764a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Badges */
.ceremony-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.designer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Outfit Carousel */
.outfit-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.outfit-carousel::-webkit-scrollbar {
    display: none;
}

.outfit-slide {
    min-width: 300px;
    scroll-snap-align: start;
}

/* ============================================================================
   Responsive Utilities
   ========================================================================= */

@media (max-width: 768px) {
    .modal-container {
        max-height: 95vh;
    }

    .modal-body {
        max-height: calc(95vh - 10rem);
    }

    .service-card,
    .outfit-card,
    .vendor-card {
        transform: none !important;
    }

    .service-card:hover,
    .outfit-card:hover,
    .vendor-card:hover {
        transform: none !important;
    }
}

/* ============================================================================
   Dark Mode Overrides
   ========================================================================= */

.dark .size-guide-chart {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.dark .measurement-input {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.dark .styling-tip {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

/* ============================================================================
   Loading States
   ========================================================================= */

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   Form Elements
   ========================================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   Button Styles
   ========================================================================= */

button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================================
   Utility Classes
   ========================================================================= */

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.smooth-transition {
    transition: all 0.3s ease;
}

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

.dark .glass-effect {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
