/**
 * Kidzup Calendar Styles
 * 
 * Styles personnalisés pour FullCalendar
 * 
 * @package Kidzup
 * @version 1.0.0
 */

/* Conteneur principal */
#calendar-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* En-tête du calendrier */
.fc .fc-toolbar {
    margin-bottom: 20px;
}

.fc .fc-toolbar-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.fc .fc-button {
    background: #667eea;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s;
}

.fc .fc-button:hover {
    background: #5568d3;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #764ba2;
    border-color: #764ba2;
}

.fc .fc-button:disabled {
    opacity: 0.5;
}

/* Cellules du calendrier */
.fc .fc-daygrid-day {
    border: 1px solid #e9ecef;
    transition: background 0.2s;
}

.fc .fc-daygrid-day:hover {
    background: #f8f9fa;
}

.fc .fc-day-today {
    background: #fff9e6 !important;
    border-color: #ffd700;
}

.fc .fc-daygrid-day-top {
    padding: 8px;
}

.fc .fc-daygrid-day-number {
    color: #333;
    font-weight: 600;
    padding: 4px;
}

/* En-têtes des jours */
.fc .fc-col-header-cell {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 8px;
}

.fc .fc-col-header-cell-cushion {
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

/* Événements */
.fc-event {
    border-radius: 4px;
    border: none !important;
    padding: 4px 6px;
    margin: 2px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.fc-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fc-event-title {
    font-weight: 600;
    font-size: 13px;
}

.fc-event-time {
    font-size: 11px;
    opacity: 0.9;
}

/* Vue liste */
.fc .fc-list-event:hover td {
    background: #f8f9fa;
}

.fc .fc-list-event-dot {
    border-width: 6px;
}

.fc .fc-list-event-title a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.fc .fc-list-event-title a:hover {
    color: #667eea;
}

/* Tooltip personnalisé */
.fc-tooltip {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 13px;
    line-height: 1.6;
}

.fc-tooltip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.fc-tooltip div {
    margin: 4px 0;
    color: #666;
}

.fc-tooltip i {
    width: 16px;
    margin-right: 6px;
    color: #999;
}

/* Loading indicator */
#calendar-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    #calendar-container {
        padding: 12px;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 12px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 18px;
    }
    
    .fc .fc-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .fc-event-title {
        font-size: 12px;
    }
}

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

#calendar-container {
    animation: fadeIn 0.5s ease;
}

/* Événements gratuits - badge */
.fc-event[data-gratuit="true"]::after {
    content: "🎁";
    margin-left: 4px;
    font-size: 11px;
}

/* Plus d'événements lien */
.fc .fc-more-link {
    color: #667eea;
    font-weight: 600;
}

.fc .fc-more-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Popover des événements */
.fc .fc-popover {
    border-radius: 8px;
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fc .fc-popover-header {
    background: #f8f9fa;
    border-color: #ddd;
    font-weight: 700;
    padding: 10px 12px;
}

.fc .fc-popover-body {
    padding: 8px;
}
