/* ============================================
   YALLATICKET - EVENTS PAGES
   Ultra Dark Theme | Classy Modern Design
   ============================================ */

/* ===== EVENT LIST PAGE ===== */

/* Search Section - Clean & Minimal */
.yt-events-search {
    background: var(--bg-surface);
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.yt-events-search__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: var(--transition);
}

.yt-events-search__bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.yt-events-search__bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.yt-events-search__bar input::placeholder {
    color: var(--text-muted);
}

.yt-events-search__bar i {
    color: var(--text-muted);
    font-size: 20px;
}

.yt-events-search__filters {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.yt-events-search__filters:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Category Tabs - Sleek Horizontal Scroll */
.yt-category-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

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

.yt-category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.yt-category-tab:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.yt-category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.yt-category-tab i {
    font-size: 18px;
}

/* Event List - Vertical Cards (Screenshot Style) */
.yt-event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yt-event-list-card {
    position: relative;
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.yt-event-list-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 217, 255, 0.15);
}

.yt-event-list-card__image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.yt-event-list-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.yt-event-list-card:hover .yt-event-list-card__image img {
    transform: scale(1.1);
}

.yt-event-list-card__content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yt-event-list-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.yt-event-list-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.yt-event-list-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.yt-event-list-card__location i {
    font-size: 14px;
    color: var(--primary);
}

.yt-event-list-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.yt-event-list-card__date i {
    font-size: 14px;
}

.yt-event-list-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.yt-event-list-card__price {
    font-size: 14px;
    color: var(--text-secondary);
}

.yt-event-list-card__price strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-left: 4px;
}

.yt-event-list-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: #FFC107;
}

.yt-event-list-card__heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.yt-event-list-card__heart:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.yt-event-list-card__heart.active {
    color: #FF5252;
}

/* RTL Support - Flip heart icon position in Arabic layout */
[dir="rtl"] .yt-event-list-card__heart {
    right: auto;
    left: 12px;
}

/* Responsive Grid for Larger Screens */
@media (min-width: 768px) {
    .yt-event-list-card__image {
        width: 180px;
        height: 180px;
    }

    .yt-event-list-card__title {
        font-size: 18px;
    }
}

/* ===== EVENT DETAILS PAGE ===== */

/* Hero Section - Full Width Image */
.yt-event-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 32px;
}

.yt-event-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-event-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 0 24px 0;
    background: var(--gradient-overlay);
}

.yt-event-hero__back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    z-index: 10;
}

.yt-event-hero__back:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.yt-event-hero__favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.yt-event-hero__favorite:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.yt-event-hero__favorite.active {
    color: #FF5252;
}

.yt-event-hero__title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.yt-event-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.yt-event-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-event-hero__meta-item i {
    color: var(--primary);
    font-size: 16px;
}

/* Event Info Cards */
.yt-event-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.yt-event-info__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.yt-event-info__title i {
    color: var(--primary);
    font-size: 24px;
}

.yt-event-info__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Organizer Card */
.yt-event-organizer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.yt-event-organizer__logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.yt-event-organizer__info {
    flex: 1;
}

.yt-event-organizer__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.yt-event-organizer__followers {
    font-size: 13px;
    color: var(--text-muted);
}

.yt-event-organizer__follow {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.yt-event-organizer__follow:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Ticket Selection */
.yt-ticket-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.yt-ticket-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.yt-ticket-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.yt-ticket-option:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.yt-ticket-option.selected {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.05);
}

.yt-ticket-option__info {
    flex: 1;
}

.yt-ticket-option__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.yt-ticket-option__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.yt-ticket-option__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.yt-ticket-option__qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.yt-ticket-option__qty button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.yt-ticket-option__qty button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.yt-ticket-option__qty span {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

/* Booking Summary */
.yt-booking-summary {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.yt-booking-summary__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.yt-booking-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.yt-booking-summary__row:last-child {
    border-bottom: none;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
}

.yt-booking-summary__label {
    font-size: 14px;
    color: var(--text-secondary);
}

.yt-booking-summary__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.yt-booking-summary__total {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.yt-booking-summary__btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: var(--shadow-primary);
}

.yt-booking-summary__btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary), 0 12px 40px rgba(0, 217, 255, 0.4);
}

.yt-booking-summary__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Gallery Grid */
.yt-event-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.yt-event-gallery__item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.yt-event-gallery__item:hover {
    transform: scale(1.05);
}

.yt-event-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Similar Events */
.yt-similar-events {
    margin-top: 48px;
}

.yt-similar-events__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
}

.yt-similar-events__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .yt-event-hero {
        height: 300px;
    }

    .yt-event-hero__title {
        font-size: 22px;
    }

    .yt-booking-summary {
        position: static;
    }

    .yt-event-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .yt-event-hero {
        height: 500px;
    }

    .yt-event-hero__title {
        font-size: 36px;
    }
}

/* Alert Message with Icon */
.yt-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.yt-alert--warning {
    background: rgba(255, 214, 0, 0.1);
    border: 1px solid rgba(255, 214, 0, 0.3);
    color: #FFD600;
}

.yt-alert--info {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--primary);
}

.yt-alert i {
    font-size: 20px;
}

/* ============================================
   Filter Modal — Dark Theme Fixes
   ============================================ */
#filter-modal .modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

#filter-modal .modal-header {
    border-bottom: 1px solid var(--border) !important;
}

#filter-modal .modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

#filter-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

#filter-modal .form-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

#filter-modal .form-control,
#filter-modal select.form-control {
    background: var(--bg-secondary, #1a1a2e) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

#filter-modal .form-control:focus,
#filter-modal select.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15) !important;
    outline: none;
}

#filter-modal select.form-control option {
    background: var(--bg-card);
    color: var(--text-primary);
}

#filter-modal input[type="date"].form-control {
    color-scheme: dark;
}

#filter-modal .form-range {
    accent-color: var(--primary);
}

#filter-modal #price-value {
    color: var(--primary);
    font-weight: 600;
}

#filter-modal .yt-btn {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#filter-modal .yt-btn--primary {
    background: var(--primary);
    color: #000;
}

#filter-modal .yt-btn--primary:hover {
    background: var(--primary-dark, #00b8d9);
    color: #000;
}

#filter-modal .yt-btn--secondary {
    background: var(--bg-secondary, #1a1a2e);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

#filter-modal .yt-btn--secondary:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* ============================================
   Filter Modal — Complete Fix
   ============================================ */

/* Position */
#filter-modal .modal-dialog {
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

/* Z-Index Layering */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

/* Ensure ALL modal elements are clickable */
.modal,
.modal * {
    pointer-events: auto !important;
}

/* Override any potential conflicts */
#filter-modal .modal-content,
#filter-modal .modal-body,
#filter-modal .modal-header,
#filter-modal form,
#filter-modal .form-control,
#filter-modal input,
#filter-modal select,
#filter-modal button,
#filter-modal a,
#filter-modal label {
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Ensure form controls are interactive */
#filter-modal input[type="date"],
#filter-modal input[type="range"],
#filter-modal select {
    cursor: pointer !important;
}

#filter-modal button {
    cursor: pointer !important;
}
