/* ============================================
   SOUL EVENTS - PUBLIC STYLES
   ============================================ */

/* Single Event Layout */
.soul-event-single {
    background: #f8f9fa;
    min-height: 100vh;
}

.soul-event-header {
    background: #006fb1;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.soul-event-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #edf2f7;
    text-align: center;
}

.soul-event-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Grid Layout with Sticky Support */
.soul-event-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start; /* Critical for sticky to work */
}

/* Main Column */
.soul-event-main {
    min-width: 0; /* Prevents overflow issues */
}

/* Sidebar - Sticky Fix */
.soul-event-sidebar {
    position: relative;
    height: 100%;
}

.soul-sticky-wrapper {
    position: sticky;
    top: 20px;
    /* Remove max-height and overflow - let it flow naturally */
}

.soul-sticky-wrapper::-webkit-scrollbar {
    width: 6px;
}

.soul-sticky-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Meta Box Styling */
.soul-event-meta-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.soul-meta-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.soul-meta-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* All h3 headings in meta box - Date, Time, Venue, Admission, Category */
.soul-meta-section h3,
.soul-event-meta-box h3,
.soul-event-meta-box > div > div > h3 {
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.soul-meta-large {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.soul-meta-time {
    font-size: 18px;
    color: #475569;
    margin: 5px 0 0 0;
}

.soul-venue-name {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.soul-address {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.soul-admission-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

/* Taxonomy Badges */
.soul-taxonomies {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.soul-tax-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soul-club-badge {
    background: #334c88;
    color: white;
}

.soul-featured-badge {
    background: #f59e0b;
    color: white;
}

/* Event Type Badges */
.soul-event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soul-event-type-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Description & Content */
.soul-event-description {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.soul-event-description h2 {
    color: #1e293b;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.soul-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.soul-flyer-image {
    margin-top: 30px;
    text-align: center;
}

.soul-flyer-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Quick Info, Map, Accommodation, Contact Boxes */
.soul-quick-info,
.soul-event-map,
.soul-accommodation,
.soul-contact-info {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.soul-quick-info h3,
.soul-event-map h3,
.soul-accommodation h3,
.soul-contact-info h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.soul-quick-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.soul-quick-item:last-child {
    border-bottom: none;
}

/* Quick Info Labels - Match Date & Time/Venue styling */
.soul-quick-label {
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.soul-quick-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    font-size: 14px;
}

/* Map */
.soul-directions-btn {
    display: block;
    margin-top: 15px;
    padding: 12px 20px;
    background: #006fb1;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.soul-directions-btn:hover {
    background: #005a8e;
}

/* Accommodation */
.soul-acc-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.soul-acc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.soul-acc-image {
    height: 120px;
    overflow: hidden;
}

.soul-acc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.soul-acc-content {
    padding: 15px;
}

.soul-acc-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.soul-acc-content h4 a {
    color: #006fb1;
    text-decoration: none;
}

.soul-acc-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.soul-acc-rating {
    color: #f59e0b;
}

.soul-acc-distance {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #e2e8f0;
}

.soul-acc-address {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.soul-acc-content a[href*="google.com"] {
    display: inline-block;
    padding: 6px 12px;
    background: #006fb1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.soul-see-more {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    color: #006fb1;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

/* Archive Styles */
.soul-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.soul-archive-header {
    text-align: center;
    margin-bottom: 40px;
    background: #006fb1;
    padding: 60px 20px;
    border-radius: 12px;
}

.soul-archive-header h1 {
    color: #edf2f7;
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.soul-event-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.soul-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.soul-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.soul-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.soul-event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.event-type-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

.event-image {
    height: 200px;
    overflow: hidden;
}

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

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

.event-details {
    padding: 25px;
    padding-left: 30px;
}

.event-meta {
    margin-bottom: 10px;
}

.event-date {
    color: #64748b;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.event-details h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.event-details h2 a {
    color: #1e293b;
    text-decoration: none;
}

.event-details h2 a:hover {
    color: #006fb1;
}

.event-location {
    color: #64748b;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.event-cta {
    display: inline-block;
    color: #006fb1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.event-cta:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #006fb1;
    background: white;
    border: 1px solid #e2e8f0;
}

.pagination .current {
    background: #006fb1;
    color: white;
    border-color: #006fb1;
}

/* Responsive */
@media (max-width: 768px) {
    .soul-event-grid {
        grid-template-columns: 1fr;
    }
    
    .soul-event-header h1 {
        font-size: 1.8rem;
    }
    
    .soul-event-description {
        padding: 25px;
    }
    
    .soul-sticky-wrapper {
        position: static; /* Disable sticky on mobile */
        max-height: none;
    }
    
    .soul-events-grid {
        grid-template-columns: 1fr;
    }
    
    .soul-archive-header h1 {
        font-size: 1.8rem;
    }
}