/* Календарный слайдер */
.home-calendar-slider {
    background: #f8f9fa;
    padding: 40px 0;
    margin: 40px 0;
}

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

.calendar-slider__title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.calendar-slider__navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-slider__nav-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    flex-shrink: 3px;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-slider__nav-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: scale(1.1);
}

.calendar-slider__nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.calendar-slider__current-month {
    font-size: 1.2rem;
    font-weight: 500;
    color: #34495e;
    min-width: 150px;
    text-align: center;
}

.calendar-slider__container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calendar-slider__track {
    display: flex;
    transition: transform 0.3s ease;
    background: white;
}

.calendar-day {
    min-width: 100%;
    padding: 30px;
    box-sizing: border-box;
    border-right: 1px solid #ecf0f1;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.calendar-day__date {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.calendar-day__date::after {
    content: attr(data-month);
    font-size: 1rem;
    font-weight: 500;
    color: #7f8c8d;
    margin-top: 4px;
}

.calendar-day__day-name {
    font-size: 1.1rem;
    color: #7f8c8d;
    text-transform: capitalize;
}

.calendar-day__content {
    display: grid;
    gap: 20px;
}

.calendar-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.calendar-section--name-days {
    border-left-color: #9b59b6;
}

.calendar-section__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-section__title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.calendar-section--events .calendar-section__title::before {
    background: #e74c3c;
}

.calendar-section--birthdays .calendar-section__title::before {
    background: #f39c12;
}

.calendar-section--name-days .calendar-section__title::before {
    background: #9b59b6;
}

.calendar-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calendar-section__item {
    padding: 2px 0;
}

.calendar-section__item:last-child {
    border-bottom: none;
}

.calendar-section__item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.calendar-section__item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.calendar-section__item-text {
    color: #2c3e50;
    line-height: 1.4;
}

.calendar-section__item-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 4px;
}

.calendar-empty {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-slider__header {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-slider__title {
        font-size: 1.5rem;
    }
    
    .calendar-day {
        padding: 20px;
    }
    
    .calendar-day__date {
        font-size: 2rem;
    }
    
    .calendar-day__date::after {
        font-size: 0.9rem;
    }
    
    .calendar-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        padding: 15px;
    }
    
    .calendar-day__date {
        font-size: 1.8rem;
    }
    
    .calendar-day__date::after {
        font-size: 0.8rem;
    }
    
    .calendar-section {
        padding: 12px;
    }
    
    .calendar-section__title {
        font-size: 1rem;
    }
}

/* Анимации загрузки */
.calendar-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.calendar-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Скрытие для скрин-ридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
