/* ============================================
   YALLATICKET - LAYOUT & NAVIGATION
   Mobile-First App Experience
   ============================================ */

/* Import Common */
@import url('common.css');

/* ===== TOP BAR ===== */
.yt-topbar {
    display: none;
    background: rgba(26, 29, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.yt-topbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yt-topbar__left {
    display: flex;
    gap: var(--space-8);
}

.yt-link--topbar {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.yt-link--topbar:hover {
    color: var(--primary);
    background: rgba(44, 199, 203, 0.1);
}

/* ===== MAIN NAVIGATION ===== */
.yt-nav {
    position: sticky;
    top: 0;
    background: rgba(26, 29, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    z-index: var(--z-sticky);
    transition: var(--transition);
}

.yt-nav.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.yt-nav__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Brand */
.yt-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: var(--transition);
}

.yt-brand:hover {
    transform: scale(1.02);
}

.yt-brand__logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-primary);
}

.yt-brand__text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Menu */
.yt-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 0;
}

.yt-menu__link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.yt-menu__link:hover {
    color: var(--text-primary);
    background: rgba(44, 199, 203, 0.1);
}

.yt-menu__link--active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

/* Navigation Actions */
.yt-nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.yt-nav .yt-lang-toggle {
    display: none;
}

/* Avatar */
.yt-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.yt-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

.yt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dropdown */
.yt-dropdown {
    position: relative;
}

.yt-dropdown__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.yt-dropdown__menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yt-dropdown__menu--wide {
    min-width: 320px;
}

.yt-dropdown__header {
    padding: var(--space-3);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.yt-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-body);
}

.yt-dropdown__item:hover {
    background: rgba(44, 199, 203, 0.1);
    color: var(--primary);
}

.yt-dropdown__item i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.yt-dropdown__user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
}

.yt-dropdown__user img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
}

.yt-dropdown__user strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.yt-dropdown__user p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.yt-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ===== MOBILE NAVIGATION ===== */
.yt-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 33, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: var(--z-sticky);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 0 !important;
}

.yt-mobile-nav__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.yt-mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-width: 60px;
    position: relative;
}

.yt-mobile-nav__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 0 0 4px 4px;
}

.yt-mobile-nav__item--active::before {
    width: 50%;
}

.yt-mobile-nav__item i {
    font-size: 20px;
    transition: var(--transition);
}

.yt-mobile-nav__item span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.yt-mobile-nav__item--active {
    color: var(--primary);
}

.yt-mobile-nav__item--active i {
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.yt-footer {
    background: var(--bg-surface);
    border-top: 3px solid var(--primary);
    padding: var(--space-6) 0;
    margin-top: var(--space-8);
}

/* Single Row Footer Layout */
.yt-footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
    padding-bottom: var(--space-4);
}

.yt-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.yt-footer__tagline {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    max-width: 200px;
}

/* Social Links */
.yt-social {
    display: flex;
    gap: var(--space-2);
}

.yt-social__link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.yt-social__link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* Footer Copyright - Centered */
.yt-footer__copyright {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.yt-payment {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.yt-payment span {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: var(--space-1);
}

.yt-payment i {
    font-size: 24px;
    opacity: 0.6;
    transition: var(--transition);
}

.yt-payment i:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* RTL Payment Spacing */
[dir="rtl"] .yt-payment span {
    margin-right: 0;
    margin-left: var(--space-1);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .yt-topbar {
        display: block;
    }

    .yt-nav .yt-lang-toggle {
        display: none !important;
    }

    .yt-nav__actions {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom));
    }

    .yt-topbar {
        display: none !important;
    }

    .yt-nav .yt-lang-toggle {
        display: inline-flex !important;
    }

    .yt-menu {
        display: none !important;
    }

    .yt-nav__actions {
        display: none !important;
    }

    .yt-mobile-nav {
        display: block;
    }

    .yt-footer__content {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
        text-align: center;
    }

    .yt-footer__brand {
        align-items: center;
    }

    .yt-footer__tagline {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .yt-brand__text {
        font-size: 20px;
    }

    .yt-brand__logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .yt-dropdown__menu {
    right: auto;
    left: 0;
}







































/* ================================
   YallaTicket - Home Page Layout
   ================================ */

.yt-home {
    position: relative;
    z-index: var(--z-base);
}

/* Center content more on big screens */
@media (min-width: 1200px) {
    .yt-home .container {
        max-width: 1100px;
    }
}

/* ===== Search Bar ===== */
.yt-search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.yt-search-bar__icon {
    color: var(--text-muted);
    font-size: 16px;
}

.yt-search-bar__input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.yt-search-bar__input::placeholder {
    color: var(--text-muted);
}

.yt-search-bar__filter {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
}

/* ===== Quick Filters ===== */
.yt-quick-filters {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: 4px;
}

.yt-quick-filters::-webkit-scrollbar {
    display: none;
}

.yt-filter-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    min-width: 190px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.yt-filter-card i {
    font-size: 18px;
    color: var(--primary);
}

.yt-filter-card strong {
    font-size: 14px;
    display: block;
}

.yt-filter-card small {
    font-size: 12px;
    color: var(--text-secondary);
}

.yt-filter-card--active,
.yt-filter-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

/* On desktop, no scroll and equal cards */
@media (min-width: 992px) {
    .yt-quick-filters {
        overflow-x: visible;
    }
    .yt-filter-card {
        min-width: 0;
    }
}

/* ===== Section Titles / Header ===== */
.yt-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.yt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.yt-see-all {
    font-size: 13px;
    color: var(--primary);
}

/* ===== Categories with images ===== */
.yt-category-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: 4px;
}

.yt-category-scroll::-webkit-scrollbar {
    display: none;
}

.yt-category-card {
    min-width: 140px;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.yt-category-card__image-wrap {
    position: relative;
    height: 90px;
    overflow: hidden;
}

.yt-category-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}

.yt-category-card__info {
    padding: 8px 10px 10px;
}

.yt-category-card__info h4 {
    font-size: 14px;
    margin: 0 0 2px;
}

.yt-category-card__info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.yt-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* On larger screens, turn into grid */
@media (min-width: 992px) {
    .yt-category-scroll {
        overflow-x: visible;
        flex-wrap: wrap;
    }
    .yt-category-card {
        min-width: 0;
        flex: 0 1 calc(25% - 16px);
    }
}

/* ===== Horizontal Event Cards (“Near You”) ===== */
.yt-scroll-cards {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: 4px;
}

.yt-scroll-cards::-webkit-scrollbar {
    display: none;
}

.yt-scroll-cards--horizontal .yt-event-card {
    min-width: 260px;
}

.yt-event-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.yt-event-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.yt-event-card__image-wrap {
    display: block;
}

.yt-event-card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.yt-event-card__heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.yt-event-card__heart.active,
.yt-event-card__heart:hover {
    background: var(--primary);
}

.yt-event-card__price-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.yt-event-card__body {
    padding: var(--space-3);
}

.yt-event-card__title {
    font-size: 15px;
    margin: 0 0 4px;
}

.yt-event-card__meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 2px;
}

.yt-event-card__location {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Desktop: Near You as grid */
@media (min-width: 992px) {
    .yt-scroll-cards--horizontal {
        overflow-x: visible;
        flex-wrap: wrap;
    }
    .yt-scroll-cards--horizontal .yt-event-card {
        flex: 0 1 calc(33.333% - 16px);
        min-width: 0;
    }
}

/* ===== Vertical List Cards (New Shows / Popular) ===== */
.yt-vertical-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* On desktop: 2-column grid, like app but wider */
@media (min-width: 992px) {
    .yt-vertical-list--grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
}

.yt-list-card {
    position: relative;
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.yt-list-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.yt-list-card__image-wrap img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
}

.yt-list-card__content {
    flex: 1;
    min-width: 0;
}

.yt-list-card__title {
    font-size: 15px;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.yt-list-card__meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-list-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.yt-list-card__heart {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.yt-list-card__heart.active,
.yt-list-card__heart:hover {
    background: var(--primary);
}

.yt-list-card__rating {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);
    font-size: 13px;
    color: #facc15;
}

/* ===== Small responsive tweaks ===== */
@media (max-width: 768px) {
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
}

/* Notification Items */
.yt-notification-item {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    margin: 4px 8px;
}

.yt-notification-item:hover {
    background: rgba(44, 199, 203, 0.15);
    transform: translateX(4px);
}

.yt-notification-item strong {
    font-weight: 600;
}

/* Notification Badge Improvements */
.yt-badge--notification {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 2px 6px;
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid var(--bg-card);
}

/* Notification Dropdown Max Height & Scroll */
.yt-dropdown__menu--wide {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.yt-dropdown__menu--wide::-webkit-scrollbar {
    width: 6px;
}

.yt-dropdown__menu--wide::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 3px;
}

.yt-dropdown__menu--wide::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.yt-dropdown__menu--wide::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Ensure dropdown appears above everything */
.yt-dropdown__menu {
    z-index: 1000;
}

/* Ensure notification bell button has relative positioning for badge */
.yt-btn--icon {
    position: relative;
}
