/* Luvia Custom Calendar Styles */

.luvia-calendar {
    background: white;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
}

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

.calendar-header .nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #1C1C1E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-header .nav-btn:hover {
    background: #FBE6D9;
    color: #F5C6AA;
}

.calendar-header .month-year {
    font-size: 18px;
    font-weight: 700;
    color: #1C1C1E;
}

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

.calendar-weekdays .weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    padding: 8px 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1C1C1E;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:not(.disabled):not(.empty):hover {
    background: #FBE6D9;
    transform: scale(1.05);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.booked {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    position: relative;
}

.calendar-day.booked::after {
    content: '✕';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #DC2626;
}

.calendar-day.today {
    border: 2px solid #F5C6AA;
    font-weight: 700;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #F5C6AA 0%, #D4A373 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 198, 170, 0.4);
}

.calendar-day.in-range {
    background: #FBE6D9;
    color: #1C1C1E;
}

.calendar-day.selected.in-range {
    background: linear-gradient(135deg, #F5C6AA 0%, #D4A373 100%);
    color: white;
}

/* Dynamic pricing on calendar days */
.calendar-day.has-special-price {
    aspect-ratio: unset;
    padding: 4px 2px;
    flex-direction: column;
    gap: 1px;
    min-height: 44px;
}

.calendar-day .day-num {
    line-height: 1;
}

.calendar-day .day-special-price {
    font-size: 9px;
    font-weight: 600;
    color: #D97706;
    line-height: 1;
    white-space: nowrap;
}

.calendar-day.selected .day-special-price {
    color: rgba(255,255,255,0.9);
}

.calendar-day.in-range .day-special-price {
    color: #B45309;
}

@media (max-width: 640px) {
    .calendar-day.has-special-price {
        min-height: 40px;
    }
    .calendar-day .day-special-price {
        font-size: 8px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.luvia-calendar {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 640px) {
    .luvia-calendar {
        padding: 16px;
    }
    
    .calendar-day {
        font-size: 13px;
    }
    
    .calendar-header .month-year {
        font-size: 16px;
    }
    
    /* Boutons de navigation plus grands et visibles sur mobile */
    .calendar-header .nav-btn {
        width: 44px;
        height: 44px;
        background: #FBE6D9;
        border: 2px solid #F5C6AA;
        flex-shrink: 0;
    }
    
    .calendar-header .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .calendar-header .nav-btn:active {
        background: #F5C6AA;
        transform: scale(0.95);
    }
}
