/* Events Module Styles */

/* Event Cards */
.event-card {
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
}

/* Calendar Styles */
.calendar-day {
    min-height: 120px;
}

.calendar-day.today {
    background-color: #EBF8FF;
    border: 2px solid #3182CE;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.calendar-event:hover {
    opacity: 0.8;
}

/* Event Type Colors */
.event-type-championship {
    background-color: #9F7AEA;
}

.event-type-seminar {
    background-color: #48BB78;
}

.event-type-training {
    background-color: #4299E1;
}

.event-type-exhibition {
    background-color: #ECC94B;
}

.event-type-meeting {
    background-color: #A0AEC0;
}

/* Event Status Badges */
.event-badge-ongoing {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
    }
    
    .calendar-event {
        font-size: 0.65rem;
        padding: 0.125rem 0.25rem;
    }
}

/* Event Gallery */
.event-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.event-gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.event-gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Event Detail Sidebar */
.event-sidebar-sticky {
    position: sticky;
    top: 1rem;
}

/* Participants Progress Bar */
.participants-progress {
    transition: width 0.5s ease;
}

/* Share Buttons */
.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prose styles for event description */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose h1 {
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
}

.prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}

.prose h3 {
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left-width: 0.25rem;
    border-left-color: #E5E7EB;
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .event-hero {
        padding: 2rem 1rem;
    }
    
    .event-hero h1 {
        font-size: 2rem;
    }
    
    .event-sidebar-sticky {
        position: relative;
        top: 0;
    }
}