/* Кастомный календарь событий */
.calendar-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar-header {
    padding: 20px;
    background: linear-gradient(135deg, #2481CC, #1a5f9c);
    color: white;
}

.calendar-header h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 8px 15px;
}

.current-month {
    font-weight: 600;
    font-size: 16px;
}

.nav-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.4);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.calendar-weekdays div {
    padding: 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 15px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 5px;
    background: #f8fafc;
}

.calendar-day:hover {
    background: #e8f4ff;
    transform: translateY(-2px);
}

.calendar-day.today {
    background: #2481CC;
    color: white;
    font-weight: bold;
}

.calendar-day.today .day-number {
    color: white;
}

.calendar-day.has-events {
    border: 2px solid #2481CC;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    background: transparent;
    transform: none;
}

.day-number {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.day-events-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.calendar-events {
    padding: 20px;
    border-top: 1px solid #eee;
}

.events-today h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-events {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.no-events i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ddd;
}

.no-events p {
    margin: 0;
    font-size: 14px;
}

.event-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #2481CC;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.event-price {
    color: #27ae60;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-participants {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.event-status.available {
    background: #d4edda;
    color: #155724;
}

.event-status.full {
    background: #f8d7da;
    color: #721c24;
}

.btn-join {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #2481CC, #1a5f9c);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-join:hover {
    background: linear-gradient(135deg, #1a5f9c, #0d4a7a);
    transform: translateY(-1px);
}

.btn-join:active {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-header h3 {
        font-size: 16px;
    }
    
    .current-month {
        font-size: 14px;
    }
    
    .nav-btn {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .calendar-weekdays {
        font-size: 12px;
        padding: 10px 5px;
    }
    
    .calendar-days {
        padding: 10px;
        gap: 3px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .calendar-events {
        padding: 15px;
    }
    
    .event-card {
        padding: 12px;
    }
    
    .event-title {
        font-size: 14px;
    }
    
    .event-meta {
        font-size: 12px;
        gap: 8px;
    }
}
