/* Events Styling - Professional Event Cards and Layout */

/* Event Cards Grid */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Individual Event Card */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.event-card.sold-out {
    opacity: 0.7;
}

/* Event Image Section */
.event-image {
    position: relative;
    height: 200px;
    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 Badges */
.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.date-day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.sold-out-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

/* Event Content */
.event-content {
    padding: 20px;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-city {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-category {
    background: #e0e7ff;
    color: #6366f1;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-venue {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.event-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.event-tag {
    background: #f8fafc;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

/* Event Footer */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.event-date {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.event-attendance {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Featured Events Section */
.featured-events {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 0;
    margin: 40px 0;
}

.featured-events .events-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.featured-events .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 40px;
}

/* Stats Container */
.stats-container {
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #6366f1;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Results */
.search-results {
    margin-top: 40px;
}

.search-results-count {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Event Detail Page */
.event-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.event-hero {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.event-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px;
}

.event-hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.event-hero-content .event-meta {
    font-size: 18px;
    opacity: 0.9;
}

.event-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
}

.ticket-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
}

.ticket-button:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.ticket-button.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-card {
        margin: 0 8px;
    }
    
    .events-container {
        padding: 20px 16px;
    }
    
    .event-hero {
        height: 250px;
    }
    
    .event-hero-content h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.events-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #6b7280;
}

.events-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.events-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

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

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

.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.2s; }
.event-card:nth-child(4) { animation-delay: 0.3s; }
.event-card:nth-child(5) { animation-delay: 0.4s; }
.event-card:nth-child(6) { animation-delay: 0.5s; }