/* ============================================
   EVENTS PAGE - SceneLink
   Modern, clean events page design
   ============================================ */

/* ---- Hero Section ---- */
.sl-events-hero {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    overflow: hidden;
}

.sl-events-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
    z-index: 0;
}

.sl-events-hero .container {
    position: relative;
    z-index: 1;
}

.sl-events-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.sl-events-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: slFadeInUp 0.5s ease both;
}

.sl-events-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.15;
}

.sl-events-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    line-height: 1.6;
}

.sl-events-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    animation: slFadeInUp 0.7s ease 0.4s both;
}

.sl-hero-stat {
    text-align: center;
}

.sl-hero-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
}

.sl-hero-stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sl-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(212, 175, 55, 0.2);
}

/* ---- Map + Calendar Layout ---- */
.sl-events-map-cal {
    padding: 40px 0;
}

.sl-events-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* ---- Calendar ---- */
.sl-events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sl-calendar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    padding: 20px;
}

.sl-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sl-calendar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.sl-calendar-nav {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: transparent;
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sl-calendar-nav:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.sl-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.sl-calendar-days-header span {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    padding: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sl-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.sl-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sl-cal-day:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.sl-cal-day.today {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    font-weight: 600;
}

.sl-cal-day.selected {
    background: #D4AF37;
    color: #1a1a2e;
    font-weight: 700;
}

.sl-cal-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D4AF37;
}

.sl-cal-day.selected.has-events::after {
    background: #1a1a2e;
}

.sl-cal-day.other-month {
    color: rgba(255, 255, 255, 0.15);
}

.sl-cal-day.other-month:hover {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
}

/* Quick Time Filters in sidebar */
.sl-quick-time {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sl-quick-time .sl-chip {
    font-size: 0.76rem;
    padding: 5px 12px;
}

.sl-neighborhood-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---- Events List Section ---- */
.sl-events-list-section {
    padding: 20px 0 60px;
}

.sl-events-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.sl-events-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.sl-view-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sl-view-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sl-view-btn:hover { color: rgba(255, 255, 255, 0.7); border-color: rgba(212, 175, 55, 0.3); }
.sl-view-btn.active { background: rgba(212, 175, 55, 0.1); border-color: #D4AF37; color: #D4AF37; }

/* ---- Featured Event ---- */
.sl-featured-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.sl-featured-event:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.sl-featured-image {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.sl-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sl-featured-event:hover .sl-featured-image img {
    transform: scale(1.03);
}

.sl-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.sl-featured-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 10px;
    line-height: 1;
}

.sl-date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.sl-date-month {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sl-featured-live {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 100px;
    color: #22c55e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sl-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1a1a2e;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sl-featured-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sl-featured-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sl-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sl-tag.music { background: rgba(108, 92, 231, 0.15); color: #A78BFA; border: 1px solid rgba(108, 92, 231, 0.25); }
.sl-tag.comedy { background: rgba(251, 191, 36, 0.15); color: #FBBF24; border: 1px solid rgba(251, 191, 36, 0.25); }
.sl-tag.food { background: rgba(255, 107, 107, 0.15); color: #FF6B6B; border: 1px solid rgba(255, 107, 107, 0.25); }
.sl-tag.art { background: rgba(236, 72, 153, 0.15); color: #EC4899; border: 1px solid rgba(236, 72, 153, 0.25); }
.sl-tag.sports { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.25); }
.sl-tag.nightlife { background: rgba(0, 191, 255, 0.15); color: #00BFFF; border: 1px solid rgba(0, 191, 255, 0.25); }
.sl-tag.trending { background: rgba(239, 68, 68, 0.15); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.25); }

.sl-featured-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.sl-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.sl-featured-meta i {
    color: #D4AF37;
    margin-right: 4px;
}

.sl-featured-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 16px;
}

.sl-featured-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.sl-stat {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.sl-stat strong {
    color: #D4AF37;
}

.sl-stat i {
    color: rgba(212, 175, 55, 0.6);
    margin-right: 4px;
}

.sl-featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.sl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #D4AF37, #C5A028);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
}

.sl-btn-primary:hover {
    background: linear-gradient(135deg, #e0be4a, #D4AF37);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.sl-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sl-btn-ghost:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.06);
    color: #fff;
}

.sl-btn-ghost.saved {
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.sl-btn-ghost.saved i { font-weight: 900; }

.sl-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sl-btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: #D4AF37;
    transform: translateY(-1px);
}

/* ---- Events Grid ---- */
.sl-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.sl-events-grid.list-view {
    grid-template-columns: 1fr;
}

/* ---- Event Card ---- */
.sl-event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sl-event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.sl-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sl-card-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.5) 100%);
}

.sl-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 8px;
    line-height: 1;
}

.sl-card-date .day { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; }
.sl-card-date .month { font-size: 0.6rem; font-weight: 600; color: rgba(26, 26, 46, 0.6); text-transform: uppercase; letter-spacing: 0.5px; }

.sl-card-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
}

.sl-card-category-icon.music { background: rgba(108, 92, 231, 0.8); }
.sl-card-category-icon.comedy { background: rgba(251, 191, 36, 0.8); }
.sl-card-category-icon.food { background: rgba(255, 107, 107, 0.8); }
.sl-card-category-icon.art { background: rgba(236, 72, 153, 0.8); }
.sl-card-category-icon.sports { background: rgba(34, 197, 94, 0.8); }
.sl-card-category-icon.nightlife { background: rgba(0, 191, 255, 0.8); }

.sl-card-body {
    padding: 16px;
}

.sl-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sl-card-venue-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.sl-card-venue-time i {
    color: rgba(212, 175, 55, 0.6);
    margin-right: 4px;
}

.sl-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sl-badge {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sl-badge.upcoming { background: rgba(108, 92, 231, 0.15); color: #A78BFA; }
.sl-badge.tonight { background: rgba(212, 175, 55, 0.15); color: #D4AF37; }
.sl-badge.popular { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.sl-badge.live { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.sl-badge.sold-out { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); }

.sl-card-engagement {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.sl-card-engagement i {
    color: rgba(212, 175, 55, 0.5);
    margin-right: 3px;
}

.sl-card-actions {
    display: flex;
    gap: 8px;
}

.sl-card-btn {
    flex: 1;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.sl-card-btn.primary {
    background: linear-gradient(135deg, #D4AF37, #C5A028);
    color: #1a1a2e;
}

.sl-card-btn.primary:hover {
    background: linear-gradient(135deg, #e0be4a, #D4AF37);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
}

.sl-card-btn.ghost {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(255, 255, 255, 0.6);
    flex: 0 0 auto;
    width: 36px;
    padding: 8px;
}

.sl-card-btn.ghost:hover {
    border-color: rgba(212, 175, 55, 0.4);
    color: #D4AF37;
}

.sl-card-btn.ghost.saved {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.sl-card-btn.sold-out {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    cursor: default;
}

/* ---- List View Card ---- */
.sl-events-grid.list-view .sl-event-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sl-events-grid.list-view .sl-card-img {
    height: 100%;
    min-height: 200px;
}

/* ---- Load More ---- */
.sl-load-more {
    text-align: center;
    padding: 20px 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sl-events-layout {
        grid-template-columns: 1fr;
    }
    
    .sl-events-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sl-calendar {
        flex: 1;
        min-width: 280px;
    }
    
    .sl-quick-time {
        flex: 1;
        min-width: 200px;
        align-content: flex-start;
    }
    
    .sl-featured-event {
        grid-template-columns: 1fr;
    }
    
    .sl-featured-image {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .sl-events-hero {
        padding: 100px 0 40px;
    }
    
    .sl-events-hero h1 {
        font-size: 1.8rem;
    }
    
    .sl-events-hero-stats {
        gap: 16px;
    }
    
    .sl-hero-stat-num {
        font-size: 1.4rem;
    }
    
    .sl-events-grid {
        grid-template-columns: 1fr;
    }
    
    .sl-events-grid.list-view .sl-event-card {
        grid-template-columns: 1fr;
    }
    
    .sl-featured-content {
        padding: 20px;
    }
    
    .sl-featured-content h3 {
        font-size: 1.3rem;
    }
    
    .sl-events-section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .sl-view-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sl-map-container {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .sl-events-hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .sl-hero-stat-divider {
        display: none;
    }
    
    .sl-featured-actions {
        flex-direction: column;
    }
    
    .sl-card-actions {
        flex-wrap: wrap;
    }
}