/* What's On Page PC Styles */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FFE4E1 0%, #E6E6FA 25%, #F0F8FF 50%, #F5FFFA 75%, #FFF8DC 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-logo a {
    text-decoration: none;
    color: #2c3e50;
}

.nav-link.active {
    color: #DDA0DD;
}

.nav-link.active::after {
    width: 100%;
}

/* What's On Hero */
.whats-on-hero {
    background: linear-gradient(45deg, #DDA0DD, #E6E6FA);
    color: white;
    padding: 140px 0 40px;
    text-align: center;
}

.whats-on-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.whats-on-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-filter-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    flex-shrink: 0;
    min-width: fit-content;
    user-select: none;
}

.hero-filter-btn.active,
.hero-filter-btn:hover {
    background: white;
    color: #DDA0DD;
}

/* What's On Section */
.whats-on-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.whats-on-section .container {
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-state button {
    padding: 12px 24px;
    background: linear-gradient(45deg, #DDA0DD, #E6E6FA);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-state button:hover {
    background: linear-gradient(45deg, #BA55D3, #DDA0DD);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 160, 221, 0.4);
}

/* Loading state styles */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #DDA0DD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-image {
    height: 200px;
    background: linear-gradient(135deg, #DDA0DD 0%, #E6E6FA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

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

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

.event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.event-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.event-status.active {
    background: #27ae60;
    color: white;
}

.event-status.upcoming {
    background: #f39c12;
    color: white;
}

.event-status.past {
    background: #7f8c8d;
    color: white;
}

.event-content {
    padding: 1.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.event-category {
    background: #DDA0DD;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-date {
    color: #e74c3c;
    font-weight: 600;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.event-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-details {
    margin-bottom: 1rem;
}

.event-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-details li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
    font-size: 0.9rem;
}

.event-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.event-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #DDA0DD;
}

.event-price.free {
    color: #27ae60;
}

.event-price span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.register-btn {
    background: linear-gradient(45deg, #DDA0DD, #E6E6FA);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.register-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.empty-state button {
    background: #DDA0DD;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state button:hover {
    background: #E6E6FA;
    transform: translateY(-2px);
}

/* Animation for event cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
}

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

/* What's On CTA */
.whats-on-cta {
    background: linear-gradient(135deg, #2c3e50 0%, #DDA0DD 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.whats-on-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.whats-on-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .whats-on-hero {
        padding: 120px 0 30px;
    }
    
    .whats-on-hero h1 {
        font-size: 2.2rem;
    }
    
    .whats-on-hero p {
        font-size: 1rem;
    }
    
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .whats-on-cta {
        padding: 50px 0;
    }
    
    .whats-on-cta h2 {
        font-size: 2rem;
    }
    
    .whats-on-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .whats-on-hero {
        padding: 100px 0 30px;
    }
    
    .whats-on-hero h1 {
        font-size: 1.8rem;
    }
    
    .whats-on-hero p {
        font-size: 0.9rem;
    }
    
    .hero-filter-buttons {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.5rem 1rem 0.5rem 0;
    }
    
    .hero-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 18px;
        min-width: auto;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-price {
        font-size: 1.1rem;
    }
    
    .whats-on-cta {
        padding: 40px 0;
    }
    
    .whats-on-cta h2 {
        font-size: 1.8rem;
    }
    
    .whats-on-cta p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Event Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 0 0 30px;
}

.event-modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #DDA0DD 0%, #E6E6FA 100%);
}

.event-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-modal-header {
    margin-bottom: 30px;
    padding: 30px 30px 0;
}

.event-modal-header h2 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.event-modal-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.event-modal-meta .event-date {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-modal-meta .event-category {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-modal-meta .event-status {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}

.event-modal-content {
    line-height: 1.7;
    padding: 0 30px;
}

.event-modal-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.event-modal-description {
    margin-bottom: 25px;
}

.event-modal-description p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.event-modal-features {
    margin-bottom: 30px;
}

.event-modal-features h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.event-modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-modal-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.event-modal-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.event-modal-features li:last-child {
    border-bottom: none;
}

.event-modal-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.event-modal-actions .register-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #DDA0DD 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.event-modal-actions .register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.event-modal-actions .register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .modal-body {
        padding: 30px 20px 20px;
    }
    
    .event-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .event-modal-meta {
        gap: 10px;
    }
    
    .event-modal-meta span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .event-modal-info {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .event-modal-actions .register-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}