/**
 * Styles du Calendrier - Hyperion-Libs-SP
 *
 * Widget de sélection de date avec navigation
 */

/* Widget du calendrier */
.hyperion-calendar-widget {
    position: relative;
    width: 100%;
}

/* Navigation Date */
.hyperion-date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.hyperion-btn-nav {
    background: #e53e3e;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hyperion-btn-nav:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hyperion-btn-nav:active {
    transform: translateY(0);
}

.hyperion-date-badge {
    background: #1a1a1a;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: #f7fafc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #2d2d2d;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.hyperion-date-badge:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.hyperion-calendar-icon {
    font-size: 16px;
    opacity: 0.7;
}

/* Popup Calendrier */
.hyperion-calendar-popup {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 20px;
    z-index: 1000;
    display: none;
    min-width: 320px;
}

.hyperion-calendar-popup.active {
    display: block;
    animation: hyperion-slideDown 0.3s ease;
}

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

/* Header du calendrier */
.hyperion-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hyperion-calendar-title {
    font-weight: 700;
    font-size: 16px;
    color: #f7fafc;
    text-transform: capitalize;
}

.hyperion-calendar-nav {
    background: #2d2d2d;
    border: none;
    color: #f7fafc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.hyperion-calendar-nav:hover {
    background: #e53e3e;
    color: white;
}

/* Jours de la semaine */
.hyperion-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

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

/* Grille des dates */
.hyperion-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.hyperion-calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #f7fafc;
}

.hyperion-calendar-date:hover {
    background: #2d2d2d;
}

.hyperion-calendar-date.other-month {
    color: #4a5568;
}

.hyperion-calendar-date.today {
    background: #e53e3e;
    color: white;
    font-weight: 700;
}

.hyperion-calendar-date.selected {
    background: #c53030;
    color: white;
    font-weight: 700;
}

/* Footer du calendrier */
.hyperion-calendar-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: center;
}

.hyperion-btn-today {
    background: #2d2d2d;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #f7fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.hyperion-btn-today:hover {
    background: #e53e3e;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hyperion-calendar-popup {
        left: 10px;
        right: 10px;
        transform: none;
        min-width: auto;
    }

    .hyperion-calendar-popup.active {
        animation: hyperion-slideDownMobile 0.3s ease;
    }

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

    .hyperion-date-navigation {
        gap: 10px;
    }

    .hyperion-date-badge {
        min-width: 140px;
        font-size: 13px;
    }
}
