/* Cococure Booking Page Styles */

#coco-booking-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.booking-container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.booking-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.booking-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.booking-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.booking-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.booking-step.active {
    display: block;
}

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

.booking-step h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Date Picker Styles */
.date-picker-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.date-picker {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.date-picker .flatpickr-calendar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.date-picker .flatpickr-day {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin: 2px !important;
    transition: all 0.3s ease !important;
}

.date-picker .flatpickr-day:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
}

.date-picker .flatpickr-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
}

.date-picker .flatpickr-day.today {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.2) !important;
}

/* Disabled dates (no events) */
.date-picker .flatpickr-day.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #666 !important;
}

/* Available dates (with events) */
.date-picker .flatpickr-day:not(.disabled):not(.flatpickr-disabled) {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

/* Dates from other months (prev/next month dates shown in current month) */
.date-picker .flatpickr-day.prevMonthDay:not(.disabled),
.date-picker .flatpickr-day.nextMonthDay:not(.disabled) {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Disabled dates from other months */
.date-picker .flatpickr-day.prevMonthDay.disabled,
.date-picker .flatpickr-day.nextMonthDay.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #666 !important;
}

/* Today's date */
.date-picker .flatpickr-day.today:not(.disabled) {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.2) !important;
    color: #ffffff !important;
}

/* Selected date */
.date-picker .flatpickr-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: #ffffff !important;
}

/* Venue List Styles */
.venue-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* Venue Sections */
.venue-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title.ongoing {
    color: #ff6b6b;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.upcoming {
    color: #4ecdc4;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.venue-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.venue-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.venue-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #ffffff;
}

.venue-card .venue-meta {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 10px;
}

.venue-card .event-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Ongoing venue cards */
.venue-card.ongoing {
    border-left: 4px solid #ff6b6b;
}

.venue-card.ongoing .event-count.ongoing {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

/* Upcoming venue cards */
.venue-card.upcoming {
    border-left: 4px solid #4ecdc4;
}

.venue-card.upcoming .event-count.upcoming {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

/* Event List Styles */
.event-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    align-items: center;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.event-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.event-details h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #ffffff;
}

.event-time {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.event-description {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.4;
}

/* Booking Type Selection */
.booking-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.booking-type-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.booking-type-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.booking-type-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.type-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.type-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.type-desc {
    color: #b0b0b0;
    font-size: 16px;
}

/* Items List Styles */
.items-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    align-items: center;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.item-description {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sold-out {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    opacity: 0.7;
}

.sold-out-badge {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Mini Cart Styles */
.booking-footer {
    position: sticky;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 100;
}

.mini-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    gap: 20px;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-items {
    color: #b0b0b0;
    font-size: 14px;
}

.cart-total {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.checkout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading States */
.loading {
    text-align: center;
    color: #b0b0b0;
    font-size: 16px;
    padding: 40px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Error States */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Today mode - hide date step */
#coco-booking-page[data-today-mode="true"] .booking-step[data-step="date"] {
    display: none !important;
}

/* Desktop-specific fixes */
@media (min-width: 769px) {
    .booking-header {
        position: relative;
        top: 0;
        z-index: 1000;
    }
    
    .back-btn {
        position: relative;
        z-index: 1001;
        pointer-events: auto;
    }
    
    .booking-content {
        margin-top: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-header {
        padding: 15px;
    }
    
    .booking-title {
        font-size: 20px;
    }
    
    .booking-content {
        padding: 20px 15px;
    }
    
    .booking-step h2 {
        font-size: 24px;
    }
    
    .booking-type-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .booking-type-btn {
        padding: 30px 20px;
    }
    
    .type-icon {
        font-size: 36px;
    }
    
    .type-title {
        font-size: 20px;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-image {
        width: 100%;
        height: 120px;
    }
    
    .item-card {
        flex-direction: column;
        text-align: center;
    }
    
    .item-image {
        width: 100%;
        height: 120px;
    }
    
    .item-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mini-cart {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkout-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-header {
        padding: 10px;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .booking-content {
        padding: 15px 10px;
    }
    
    .venue-card,
    .event-card,
    .item-card {
        padding: 15px;
    }
    
    .booking-type-btn {
        padding: 20px 15px;
    }
}
