/* Booking Calendar Styles with FOMO Effects */

.booking-calendar-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Compact version for sidebar */
#booking-calendar-sidebar {
    padding: 12px;
    max-height: 450px;
    overflow-y: auto;
}

#booking-calendar-sidebar .calendar-header h3 {
    font-size: 16px;
}

#booking-calendar-sidebar .calendar-day {
    padding: 4px;
    font-size: 12px;
}

#booking-calendar-sidebar .activity-counter {
    padding: 8px 10px;
    font-size: 12px;
}

.calendar-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-alert i {
    margin-right: 8px;
    font-size: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
}

.calendar-day-header.sunday {
    color: #ff4757;
}

.calendar-day-header.saturday {
    color: #5352ed;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.calendar-day:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.2);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day-number {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.calendar-day.sunday .calendar-day-number {
    color: #ff4757;
}

.calendar-day.saturday .calendar-day-number {
    color: #5352ed;
}

/* Availability Status Colors - Simple solid colors */
.calendar-day.available {
    background: #ffffff;
    border-color: #28a745;
}

.calendar-day.fully-booked {
    background: #e9ecef;
    border-color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.pending {
    background: #e7f3ff;
    border-color: #007bff;
}

/* Removed pulse animation - not needed for simple 3-status system */

/* Status Icons */
.calendar-day-status {
    font-size: 16px;
    display: block;
    margin-top: 2px;
}

.status-available {
    color: #28a745;
}

.status-limited {
    color: #ffc107;
}

.status-last-chance {
    color: #dc3545;
}

.status-booked {
    color: #6c757d;
}

.status-pending {
    color: #007bff;
}

/* Badges */
.calendar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1;
}

.badge-popular {
    background: #ff6b6b;
    color: white;
}

.badge-trending {
    background: #ffc107;
    color: #333;
    animation: shimmer 2s infinite;
}

.badge-special {
    background: #9b59b6;
    color: white;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Tooltip */
.calendar-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    width: 200px;
    z-index: 1000;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.calendar-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #333;
}

.calendar-day:hover .calendar-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.calendar-tooltip-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.calendar-tooltip-line i {
    width: 16px;
}

/* Activity Counter */
.activity-counter {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 12px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-counter i {
    font-size: 16px;
    color: #ff6b6b;
}

/* Legend */
.calendar-legend {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.legend-available {
    background: #ffffff;
    border-color: #28a745;
}

.legend-booked {
    background: #e9ecef;
    border-color: #adb5bd;
}

.legend-pending {
    background: #e7f3ff;
    border-color: #007bff;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .booking-calendar-container {
        padding: 12px;
    }
    
    .calendar-header h3 {
        font-size: 16px;
    }
    
    .calendar-day {
        padding: 4px;
        font-size: 12px;
    }
    
    .calendar-day-number {
        font-size: 13px;
    }
    
    .calendar-day-status {
        font-size: 14px;
    }
    
    .calendar-badge {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .calendar-tooltip {
        width: 180px;
        font-size: 11px;
        padding: 10px;
    }
    
    .calendar-alert {
        font-size: 12px;
        padding: 10px 12px;
    }
}
