/* Event Page Styles */

/* Event Hero Section */
.event-hero {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    padding: 2rem 0 4rem 0;
    padding-top: 100px; /* Account for fixed header */
    position: relative;
    overflow: hidden;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.event-banner {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.event-banner .banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.event-banner .banner-image:hover {
    transform: translateY(-5px);
}

.event-hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.event-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Event Content Section */
.event-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.event-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.event-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.event-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.event-title {
    flex: 1;
}

.event-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.event-body {
    padding: 2rem;
}

.event-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
}

.event-description h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #8B5CF6;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #8B5CF6;
    padding-left: 1rem;
}

.event-description ul,
.event-description ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.event-description li {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

.event-description strong {
    color: #8B5CF6;
    font-weight: 600;
}

.event-highlight {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.event-highlight::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.2rem;
}

.event-highlight p {
    margin: 0;
    font-weight: 500;
    color: #92400E;
}

/* Call to Action Section */
.event-cta {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.event-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.3)"/><circle cx="40" cy="80" r="0.8" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="90" r="0.3" fill="rgba(255,255,255,0.3)"/><circle cx="10" cy="60" r="0.6" fill="rgba(255,255,255,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.5;
}

.event-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.event-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 180px;
}

.cta-buttons .btn-primary {
    background: white;
    color: #8B5CF6;
}

.cta-buttons .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-hero {
        padding-top: 90px; /* Slightly less padding for mobile */
    }
    
    .event-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .event-hero-content p {
        font-size: 1.1rem;
    }
    
    .event-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .event-title h2 {
        font-size: 1.5rem;
    }
    
    .event-body {
        padding: 1.5rem;
    }
    
    .event-description p {
        font-size: 1rem;
    }
    
    .event-description h3 {
        font-size: 1.3rem;
    }
    
    .event-cta h2 {
        font-size: 2rem;
    }
    
    .event-cta p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .event-hero {
        padding: 1.5rem 0 3rem 0;
        padding-top: 80px; /* Even less padding for smaller mobile */
    }
    
    .event-hero-content h1 {
        font-size: 2rem;
    }
    
    .event-hero-content p {
        font-size: 1rem;
    }
    
    .event-content {
        padding: 2rem 0;
    }
    
    .event-header {
        padding: 1.5rem;
    }
    
    .event-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .event-title h2 {
        font-size: 1.3rem;
    }
    
    .event-body {
        padding: 1rem;
    }
    
    .event-description p {
        font-size: 0.95rem;
    }
    
    .event-description h3 {
        font-size: 1.2rem;
    }
    
    .event-highlight {
        padding: 1rem;
    }
    
    .event-cta {
        padding: 2rem 1rem;
    }
    
    .event-cta h2 {
        font-size: 1.8rem;
    }
    
    .event-cta p {
        font-size: 1rem;
    }
}

/* Animation for event items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item {
    animation: fadeInUp 0.6s ease forwards;
}

.event-item:nth-child(1) { animation-delay: 0.1s; }
.event-item:nth-child(2) { animation-delay: 0.2s; }
.event-item:nth-child(3) { animation-delay: 0.3s; }
.event-item:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects for interactive elements */
.event-item:hover .event-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.event-badge {
    transition: all 0.3s ease;
}

.event-item:hover .event-badge {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Loading animation for banner image */
.event-banner .banner-image {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.event-item:focus-within {
    outline: 3px solid #8B5CF6;
    outline-offset: 2px;
}

.cta-buttons .btn-primary:focus,
.cta-buttons .btn-secondary:focus {
    outline: 3px solid white;
    outline-offset: 2px;
} 