/* ====================================
   EVENTS CSS - Event Pages Styling
   ==================================== */

/* Event Carousel Styles */
.event-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.event-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Event Carousel Navigation */
.event-prev,
.event-next {
    transition: all 0.3s ease;
}

.event-prev:hover,
.event-next:hover {
    transform: scale(1.1);
}

.event-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-dot:hover {
    transform: scale(1.2);
}

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

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

.event-card .event-image {
    position: relative;
    overflow: hidden;
}

.event-card .event-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    transition: opacity 0.3s ease;
}

.event-card:hover .event-image::before {
    opacity: 0.9;
}

/* Event Detail - Hero Banner */
.event-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.8)
    );
}

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

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

/* Prize Rank Badges */
.prize-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.prize-rank-1 {
    background: linear-gradient(to bottom right, #fbbf24, #f59e0b);
    color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3);
}

.prize-rank-2 {
    background: linear-gradient(to bottom right, #cbd5e1, #94a3b8);
    color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(203, 213, 225, 0.3);
}

.prize-rank-3 {
    background: linear-gradient(to bottom right, #fb923c, #f97316);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(251, 146, 60, 0.3);
}

/* Event CTA Buttons */
.event-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.event-cta-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.3);
}

/* Event Step Numbers */
.event-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    background: #2563eb;
    color: white;
}

/* Prose Styling for Event Content */
.event-prose {
    max-width: none;
}

.event-prose h1,
.event-prose h2,
.event-prose h3,
.event-prose h4,
.event-prose h5,
.event-prose h6 {
    font-weight: 700;
    color: #1e293b;
}

.dark .event-prose h1,
.dark .event-prose h2,
.dark .event-prose h3,
.dark .event-prose h4,
.dark .event-prose h5,
.dark .event-prose h6 {
    color: white;
}

.event-prose p,
.event-prose li {
    color: #475569;
}

.dark .event-prose p,
.dark .event-prose li {
    color: #cbd5e1;
}

.event-prose strong {
    color: #10b981;
    font-weight: 700;
}

.event-prose a {
    color: #10b981;
}

.event-prose a:hover {
    color: #059669;
}

.event-prose ul {
    list-style-type: disc;
}

.event-prose ol {
    list-style-type: decimal;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .event-hero-banner {
        min-height: 300px;
    }

    .prize-rank-badge {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }

    .event-step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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