/**
 * Event Detail Page v2 - Immersive Mobile-First Styles
 */

/* ============================================
   CSS Variables (Theme)
   ============================================ */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-text: #333;
    --color-text-muted: #6c757d;
    --color-bg-light: #f8f9fa;
    --font-headline: 'Oxanium', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --nav-height-mobile: 72px;
    --section-padding: 80px;
    --section-padding-mobile: 60px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ============================================
   Base Styles
   ============================================ */

/* Reset body background when v2 page is active */
body:has(.event-page-v2) {
    background: white !important;
    background-image: none !important;
}

/* Fallback for browsers without :has() support */
.event-page-v2-body {
    background: white !important;
    background-image: none !important;
}

.event-page-v2 {
    overflow-x: hidden;
    background: white;
    position: relative;
}

/* Remove container constraints for v2 event page */
body.event-page-v2-body > main.container,
body.event-page-v2-body main.container:has(.event-page-v2) {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* Override TownHub theme background styles */
.event-page-v2 .event-section,
.event-page-v2 .container,
.event-page-v2 .row,
.event-page-v2 .col,
.event-page-v2 [class*="col-"] {
    background-image: none !important;
    background-color: transparent;
}

.event-page-v2 .event-section {
    background-color: white !important;
    position: relative;
    z-index: 1;
}

/* Override any .bg class styles from TownHub */
.event-page-v2 .bg,
.event-page-v2 .bg-parallax-wrap,
.event-page-v2 .bg-tabs-wrap,
.event-page-v2 .parallax-section {
    display: none !important;
}

/* Hero background uses CSS variable set on section */
.event-page-v2 .event-hero-immersive .hero-bg-image {
    background-image: var(--hero-bg-image) !important;
}

/* Section base styles */
.event-section {
    padding: var(--section-padding-mobile) 0;
    padding-bottom: calc(var(--section-padding-mobile) + var(--nav-height-mobile));
}

@media (min-width: 992px) {
    .event-section {
        padding: var(--section-padding) 0;
    }
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.section-title i {
    color: var(--color-primary);
    margin-right: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ============================================
   Immersive Hero Section
   ============================================ */
.event-hero-immersive {
    height: 100vh !important;
    min-height: 600px !important;
    max-height: 100vh;
    position: relative;
    display: flex !important;
    align-items: flex-end;
    overflow: hidden;
    background: #1a1a2e; /* Fallback dark background */
    z-index: 2;
    padding-top: 80px; /* Space for navbar */
    width: 100%;
}

@media (min-width: 992px) {
    .event-hero-immersive {
        height: 85vh !important;
        min-height: 700px !important;
    }
}

/* Hero background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.85) 100%
    );
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 20px 100px;
    color: white;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 0 40px 80px;
    }
}

/* Date badge */
.hero-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: white;
    color: var(--color-text);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-left: 4px solid var(--color-primary);
}

.hero-date-badge .date-day {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
}

.hero-date-badge .date-month {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

.hero-date-badge .date-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Multi-day badge */
.hero-date-badge.multi-day {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
}

.hero-date-badge.multi-day .date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-date-badge.multi-day .date-start,
.hero-date-badge.multi-day .date-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-date-badge.multi-day .date-start .date-month,
.hero-date-badge.multi-day .date-end .date-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    order: -1;
}

.hero-date-badge.multi-day .date-start .date-day,
.hero-date-badge.multi-day .date-end .date-day {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.hero-date-badge.multi-day .date-separator {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.hero-date-badge.multi-day .date-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    width: 100%;
    text-align: center;
}

/* Hero title */
.hero-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
        max-width: 800px;
    }
}

/* Info pills */
.hero-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.hero-info-pills .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-info-pills .pill i {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero CTA buttons */
.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary-hero,
.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
}

.btn-primary-hero {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-secondary-hero {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary-hero:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.8;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.description-text.truncated {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.description-text.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, white);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-read-more:hover {
    background: var(--color-primary);
    color: white;
}

.btn-read-more i {
    transition: transform var(--transition-medium);
}

/* Full Event Image */
.event-image-full {
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-light);
}

.event-image-full-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-medium);
}

.event-image-full:hover .event-image-full-img {
    transform: scale(1.02);
}

/* ============================================
   Location Section
   ============================================ */
.location-content {
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.location-details {
    padding: 24px;
}

.venue-name {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.address-line {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
}

.btn-location:first-child {
    background: var(--gradient-primary);
    color: white;
}

.btn-location:first-child:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-location.btn-copy {
    background: var(--color-bg-light);
    color: var(--color-text);
}

.btn-location.btn-copy:hover {
    background: #e9ecef;
}

/* Map */
.map-container {
    height: 300px;
    position: relative;
    background: var(--color-bg-light);
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.map-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.map-placeholder:hover {
    background: rgba(102, 126, 234, 0.05);
}

.map-placeholder:hover i {
    color: var(--color-primary);
    opacity: 1;
}

.map-container.loaded .map-placeholder {
    display: none;
}

.map-element {
    width: 100%;
    height: 100%;
    display: none;
}

.map-container.loaded .map-element {
    display: block;
}

@media (min-width: 768px) {
    .location-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .map-container {
        height: auto;
        min-height: 300px;
    }
}

/* Calendar buttons */
.calendar-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.calendar-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-bg-light);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.btn-calendar:hover {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   Competitions Section
   ============================================ */
.competitions-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.competitions-swiper {
    padding-bottom: 50px;
}

.competitions-swiper .swiper-pagination-bullet {
    background: var(--color-primary);
}

.competitions-swiper .swiper-pagination-bullet-active {
    background: var(--gradient-primary);
}

.competition-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    transition: all var(--transition-medium);
    height: 100%;
}

.competition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.comp-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--comp-color, var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.comp-name {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.comp-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--comp-color, var(--color-primary));
    margin-bottom: 12px;
}

.comp-classes {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Desktop: Grid layout */
@media (min-width: 992px) {
    .competitions-swiper .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .competitions-swiper .swiper-slide {
        width: auto !important;
    }

    .competitions-swiper .swiper-pagination {
        display: none;
    }
}

/* ============================================
   Tickets Section
   ============================================ */
.event-section-tickets {
    background: var(--color-bg-light);
}

.tickets-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Override existing ticket styles for v2 */
.event-section-tickets .card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.event-section-tickets .card-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* ============================================
   Organizer Section
   ============================================ */
.organizer-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.organizer-avatar {
    margin-bottom: 20px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 700;
}

.organizer-name {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.organization-name {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.organizer-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.organizer-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.organizer-stats .stat i {
    color: var(--color-primary);
}

.btn-contact-organizer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.btn-contact-organizer:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ============================================
   Section Navigation - Mobile (Bottom Nav)
   ============================================ */
nav.section-nav-mobile {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60px;
    background: #ffffff !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: space-around;
    align-items: center;
    padding: 8px 8px 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 999 !important;
    border-top: 2px solid #667eea;
    transform: none !important;
}

nav.section-nav-mobile button {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    color: #6c757d !important;
    font-size: 0.65rem;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 56px;
    visibility: visible !important;
    opacity: 1 !important;
}

nav.section-nav-mobile button.active {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

nav.section-nav-mobile button i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: block !important;
}

nav.section-nav-mobile button span {
    font-weight: 500;
    display: block !important;
}

/* ============================================
   Section Navigation - Desktop (Side Dots)
   ============================================ */
.section-nav-desktop {
    position: fixed !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 1999 !important;
}

@media (min-width: 992px) {
    .section-nav-desktop {
        display: flex !important;
    }

    .section-nav-mobile {
        display: none !important;
    }

    .event-section {
        padding-bottom: var(--section-padding);
    }
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
}

.nav-dot:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--gradient-primary);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.nav-dot:hover::after {
    opacity: 1;
}

/* ============================================
   Floating CTA
   ============================================ */
.floating-cta {
    position: fixed !important;
    bottom: calc(var(--nav-height-mobile) + 16px);
    right: 16px;
    z-index: 4500 !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta.hidden-by-section {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

@media (min-width: 992px) {
    .floating-cta {
        bottom: 24px;
        right: 80px;
    }
}

.btn-floating-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    transition: all var(--transition-medium);
    font-weight: 600;
}

.btn-floating-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-floating-cta .price-from {
    font-size: 0.8rem;
    opacity: 0.9;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"].animate-in {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-right"].animate-in {
    transform: translateX(0);
}

[data-animate="scale"] {
    transform: scale(0.9);
}

[data-animate="scale"].animate-in {
    transform: scale(1);
}

/* ============================================
   Utilities
   ============================================ */
.text-muted {
    color: var(--color-text-muted) !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar but allow scrolling */
.event-page-v2::-webkit-scrollbar {
    display: none;
}

.event-page-v2 {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   Tickets v2 - Card Grid with Category Tabs
   ============================================ */
.tickets-v2 {
    position: relative;
}

/* Event Completed / Empty States */
.tickets-completed,
.tickets-empty {
    text-align: center;
    padding: 60px 20px;
}

.tickets-completed .completed-icon,
.tickets-empty .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-text-muted);
}

.tickets-completed h3,
.tickets-empty h3 {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.tickets-completed p,
.tickets-empty p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.btn-contact-post-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-text-muted);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-medium);
}

.btn-contact-post-event:hover {
    background: var(--color-text);
    color: white;
}

/* Login Prompt */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #e7f1ff;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #0d6efd;
}

.login-prompt i {
    font-size: 1.1rem;
}

.login-prompt a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: underline;
}

/* Category Tabs */
.ticket-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ticket-category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.category-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.category-tab i {
    margin-right: 6px;
}

/* Ticket Cards Grid */
.ticket-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .ticket-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ticket-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual Ticket Card */
.ticket-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    overflow: hidden;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ticket-card.ticket-selected {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.ticket-card.ticket-unavailable,
.ticket-card.ticket-sold-out {
    opacity: 0.7;
}

.ticket-card.ticket-low-stock {
    border-color: #fd7e14;
}

/* Ticket Status Badge */
.ticket-status {
    padding: 12px 16px;
    background: var(--color-bg-light);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-low-stock {
    background: #fff3cd;
    color: #856404;
    animation: pulse-badge 2s infinite;
}

.status-coming-soon {
    background: #cce5ff;
    color: #004085;
}

.status-ended {
    background: #e9ecef;
    color: #6c757d;
}

.status-sold-out {
    background: #f8d7da;
    color: #721c24;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ticket Card Body */
.ticket-card-body {
    padding: 20px;
    flex: 1;
}

.ticket-card-name {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px 0;
}

.ticket-card-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.btn-more-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
}

.btn-more-info:hover {
    text-decoration: underline;
}

.ticket-card-price {
    margin-bottom: 8px;
}

.price-amount {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-fees {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.ticket-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Ticket Card Footer - Quantity Selector */
.ticket-card-footer {
    padding: 16px 20px;
    background: var(--color-bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

.qty-selector-v2 {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.qty-btn-v2 {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.qty-btn-v2:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.qty-btn-v2:active {
    background: var(--color-primary);
    color: white;
}

.qty-input-v2 {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: white;
}

.qty-input-v2:focus {
    outline: none;
}

.ticket-card-subtotal {
    text-align: right;
}

.ticket-card-subtotal .subtotal-amount {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Order Summary Bar (Inline at bottom of ticket area) */
.order-summary-bar {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

/* Gradient top border */
.order-summary-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.3;
    transition: opacity var(--transition-medium);
}

.order-summary-bar.has-tickets::before {
    opacity: 1;
}

.order-summary-bar.has-tickets {
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.2);
}

.summary-bar-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .summary-bar-content {
        grid-template-columns: 1fr auto;
    }
}

/* Left side - Order details */
.summary-bar-details {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

@media (min-width: 768px) {
    .summary-bar-details {
        padding: 28px 32px;
    }
}

.summary-bar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.summary-bar-header i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.summary-bar-header span {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-bar-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.summary-bar-row .summary-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.summary-bar-row .summary-value {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.summary-bar-row.summary-bar-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px dashed #dee2e6;
}

.summary-bar-row.summary-bar-total .summary-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.summary-bar-row.summary-bar-total .summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Right side - Checkout action */
.summary-bar-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    gap: 12px;
}

@media (min-width: 768px) {
    .summary-bar-action {
        padding: 28px 40px;
        min-width: 260px;
    }
}

.btn-checkout-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-checkout-bar i {
    font-size: 1.1rem;
}

.btn-checkout-bar:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.btn-checkout-bar:disabled {
    background: rgba(255, 255, 255, 0.5);
    color: rgba(102, 126, 234, 0.5);
    box-shadow: none;
    cursor: not-allowed;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.secure-badge i {
    font-size: 0.9rem;
}

/* Empty state styling */
.order-summary-bar:not(.has-tickets) .summary-bar-action {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
}

.order-summary-bar:not(.has-tickets) .summary-bar-total .summary-value {
    background: none;
    -webkit-text-fill-color: var(--color-text-muted);
    color: var(--color-text-muted);
}

/* Modal Overrides for Ticket Info */
.ticket-info-modal {
    z-index: 5000 !important;
}

.ticket-info-modal .modal-price {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   Organization Logo in Organizer Section
   ============================================ */
.organizer-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.organizer-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.organizer-card-enhanced {
    flex-wrap: wrap;
}

.organizer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-view-profile,
.btn-website {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-view-profile {
    background: var(--gradient-primary);
    color: white;
}

.btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-website {
    background: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid #dee2e6;
}

.btn-website:hover {
    background: #e9ecef;
    color: var(--color-text);
}

/* ============================================
   Membership Benefits Section
   ============================================ */
.membership-benefits-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Member Status Card (for existing members) */
.member-status-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border: 2px solid #28a745;
    border-radius: var(--radius-md);
}

.member-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.member-info h3 {
    margin: 0 0 0.5rem;
    color: #28a745;
    font-size: 1.25rem;
    font-family: var(--font-headline);
}

.member-discount-text {
    margin: 0;
    color: #155724;
    font-size: 0.95rem;
}

.member-discount-text i {
    margin-right: 0.5rem;
}

.member-number {
    display: inline-block;
    margin-top: 0.5rem;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Membership Promo Card (for non-members) */
.membership-promo-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #28a745;
    border-radius: var(--radius-md);
}

.promo-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.promo-badge .discount-amount {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-headline);
}

.promo-badge .discount-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.promo-content {
    flex: 1;
}

.promo-content h3 {
    margin: 0 0 0.5rem;
    color: var(--color-text);
    font-size: 1.25rem;
    font-family: var(--font-headline);
}

.promo-content p {
    margin: 0 0 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.promo-meta {
    display: flex;
    gap: 1rem;
}

.promo-price {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.promo-price i {
    color: #28a745;
    margin-right: 0.4rem;
}

.btn-membership-cta {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.btn-membership-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-membership-cta i {
    margin-left: 0.5rem;
}

/* ============================================
   Ticket Card Member Discount Badges
   ============================================ */
.ticket-member-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.ticket-member-discount-badge i {
    font-size: 0.85rem;
}

.ticket-member-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.ticket-member-promo-badge i {
    font-size: 0.8rem;
}

/* Mobile Responsive - Membership & Organizer */
@media (max-width: 768px) {
    .member-status-card,
    .membership-promo-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .promo-content h3 {
        font-size: 1.1rem;
    }

    .promo-meta {
        justify-content: center;
    }

    .btn-membership-cta {
        width: 100%;
        text-align: center;
    }

    .organizer-actions {
        flex-direction: column;
    }

    .btn-view-profile,
    .btn-website,
    .btn-contact-organizer {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
