/**
 * CSS для модуля мероприятий (events)
 * Содержит стили для списка мероприятий и детальных страниц
 */

/* Общие стили для мероприятий */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card .card-text {
    flex-grow: 1;
}

.event-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 200px;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.event-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1;
}

.event-price {
    font-weight: 600;
    color: #28a745;
}

.event-free {
    font-weight: 600;
    color: #007bff;
}

.event-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.event-meta i {
    width: 18px;
    text-align: center;
    margin-right: 5px;
}

/* Стили изображений для событий */
.event-img, .event-img-placeholder {
    height: 180px;
    object-fit: cover;
}

/* Стили для фильтров */
.event-filters {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-filters .form-group {
    margin-bottom: 1rem;
}

.event-filters label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Стили для детальной страницы мероприятия */
.event-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-detail-card {
    margin-bottom: 30px;
}

.event-detail-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.event-detail-meta-item {
    display: flex;
    align-items: center;
}

.event-detail-meta-item i {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
}

.event-registration-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.event-price-box {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.event-organizer {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.event-organizer-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Стили для списка участников */
.event-participants {
    margin-top: 30px;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Стили для комментариев */
.event-comments {
    margin-top: 30px;
}

.comment-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Дополнительные стили для отображения событий */
.event-today-card {
    border-left: 4px solid #ffc107;
}

.event-list-item {
    transition: background-color 0.2s;
}

.event-list-item:hover {
    background-color: #f8f9fa;
}

.event-date {
    width: 60px;
    margin: 0 auto;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Стили для календаря событий */
.calendar-table {
    table-layout: fixed;
}

.calendar-day {
    height: 120px;
    vertical-align: top;
    padding: 5px;
    position: relative;
}

.calendar-day.today {
    background-color: #f8f9fa;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #adb5bd;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.today .day-number {
    background-color: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
}

.day-events {
    font-size: 0.8rem;
}

.calendar-event {
    display: block;
    margin-bottom: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
    color: #212529;
    background-color: #e9ecef;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-event.ongoing {
    background-color: #d1e7dd;
    border-left: 3px solid #198754;
}

.calendar-event.upcoming {
    background-color: #cfe2ff;
    border-left: 3px solid #0d6efd;
}

.calendar-event.completed {
    background-color: #e9ecef;
    border-left: 3px solid #6c757d;
}

.calendar-event.cancelled {
    background-color: #f8d7da;
    border-left: 3px solid #dc3545;
    text-decoration: line-through;
}

.event-time {
    display: inline-block;
    font-weight: bold;
    margin-right: 5px;
}

.more-events {
    text-align: center;
    padding: 2px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .event-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-image-container {
        height: 150px;
    }
    
    .event-title {
        font-size: 1rem;
    }
}