/*
Theme Name: Ticketmaster Premium
Author: Antigravity
Version: 5.0
Description: A premium, dynamic theme mimicking the modern event experience.
*/

:root {
    /* --- BRAND COLORS --- */
    --tm-brand-blue: #026cdf;
    /* Official TM Blue */
    --tm-brand-dark-blue: #004691;
    --tm-accent-blue: #2d65a0;
    --tm-hover-blue: #025cc4;

    /* --- NEUTRALS --- */
    --tm-black: #1f262d;
    --tm-slate-dark: #262626;
    /* Deep dark for backgrounds */
    --tm-gray-100: #f4f4f6;
    /* Light bg */
    --tm-gray-200: #e1e1e4;
    /* Borders */
    --tm-gray-300: #c5c5c9;
    --tm-gray-500: #768692;
    /* Secondary text */
    --tm-gray-700: #4b4d53;
    --tm-white: #ffffff;

    /* --- UTILITY --- */
    --tm-error: #d10000;
    --tm-success: #3c8a2e;
    --tm-focus: rgba(2, 108, 223, 0.4);

    /* --- SPACING --- */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;

    /* --- TYPOGRAPHY --- */
    /* Ticketmaster uses Averta, fallback to Inter which is very close widely available */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* --- SHADOWS & RADIUS --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-dropdown: 0 4px 20px rgba(0, 0, 0, 0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    /* --- Z-INDEX --- */
    --z-header: 1000;
    --z-dropdown: 1100;
    --z-modal: 2000;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--tm-white);
    color: var(--tm-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul,
li {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tm-slate-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: 1320px;
    /* Standard wide container */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

.hidden-desktop {
    display: block;
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none;
    }
}


/* --- BUTTONS --- */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tm-brand-blue);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
    white-space: nowrap;
}

.tm-btn:hover {
    background-color: var(--tm-brand-dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 108, 223, 0.25);
}

.tm-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--tm-focus);
}

.tm-btn.btn-outline {
    background-color: transparent;
    border-color: var(--tm-brand-blue);
    color: var(--tm-brand-blue);
}

.tm-btn.btn-outline:hover {
    background-color: rgba(2, 108, 223, 0.05);
    box-shadow: none;
}

.tm-btn.btn-white {
    background-color: white;
    color: var(--tm-brand-blue);
}

.tm-btn.btn-white:hover {
    background-color: var(--tm-gray-100);
}


/* --- HEADER --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--tm-gray-200);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    height: 72px;
    /* Slightly more compact than before */
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--spacing-lg);
}

/* Logo */
.brand-logo svg {
    height: 32px;
    width: auto;
}

.brand-title {
    font-weight: 800;
    font-size: 24px;
    /* Scaled down slightly */
    letter-spacing: -0.5px;
    display: none;
    /* Often just the icon on mobile, text on desktop usually */
}

@media(min-width: 1024px) {
    .brand-title {
        display: inline-block;
    }
}

/* Search Bar - Centered & Premium */
.header-search {
    flex: 1;
    max-width: 560px;
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--tm-gray-300);
    border-radius: var(--radius-pill);
    /* Pill shape is key for TM */
    overflow: hidden;
    padding: 0 4px;
    height: 48px;
    transition: all 0.2s ease;
}

.search-wrapper:focus-within {
    border-color: var(--tm-brand-blue);
    box-shadow: 0 0 0 4px rgba(2, 108, 223, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    color: var(--tm-black);
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--tm-gray-500);
    font-weight: 400;
}

.search-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-brand-blue);
    cursor: pointer;
    border-radius: 50%;
    margin-right: 2px;
}

.search-btn:hover {
    background-color: var(--tm-gray-100);
}

/* Nav Links - Right Side */
.header-right-nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--tm-slate-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--tm-brand-blue);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

/* Mobile Header Elements */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .header-nav-lists {
        display: none;
    }

    /* Hide standard nav items on mobile */
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

    /* On mobile, search usually is an icon that expands or a separate row */
}


/* --- HERO SECTION --- */
/* TM often uses a blurred background or a high-res artist image */
.tm-hero {
    background: radial-gradient(circle at 70% 30%, #1f2f45, #0b1521);
    color: white;
    padding: 80px 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Add a pseudo-element for a subtle pattern or glow */
.tm-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 108, 223, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    /* Mobile default */
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: white;
    letter-spacing: -1px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

/* --- SECTION TITLES --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--spacing-xxl) 0 var(--spacing-lg);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--tm-black);
}

.see-all-link {
    color: var(--tm-brand-blue);
    font-weight: 600;
    font-size: 14px;
}

.see-all-link:hover {
    text-decoration: underline;
}


/* --- CATEGORY PILLS --- */
.category-scroller {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.category-scroller::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    gap: 8px;
    cursor: pointer;
    /* group behavior handled via :hover on parent */
}

.cat-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--tm-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--tm-black);
}

.category-pill:hover .cat-icon-box {
    background: var(--tm-brand-blue);
    color: white;
    box-shadow: var(--shadow-card);
}

.cat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-black);
}


/* --- EVENT CARDS --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Mobile first */
    gap: var(--spacing-lg);
}

@media (min-width: 500px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.event-card {
    background: white;
    border: 1px solid var(--tm-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.event-img-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: var(--tm-gray-100);
    overflow: hidden;
}

.event-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-date {
    color: var(--tm-error);
    /* TM RED for dates */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.event-venue {
    font-size: 14px;
    color: var(--tm-gray-500);
    margin-bottom: var(--spacing-md);
}

.event-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--tm-gray-100);
    padding-top: 12px;
}

.ticket-price {
    font-weight: 700;
    color: var(--tm-black);
}


/* --- FOOTER --- */
.site-footer {
    background: #1f262d;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h4 {
    color: white;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #aebdc7;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    color: #8394a1;
    font-size: 12px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}
/* --- NEW HEADER STYLES --- */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tm-brand-blue);
    text-decoration: none;
}

.brand-icon {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -2px;
    background: transparent;
    color: var(--tm-brand-blue);
}

.brand-text {
    font-weight: 800;
    font-size: 20px;
    color: black;
    letter-spacing: -0.5px;
    display: none;
}

@media(min-width: 1024px) {
    .brand-text { display: block; }
}

.header-center .main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-weight: 500;
    color: var(--tm-black);
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--tm-brand-blue);
    text-decoration: underline;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search-pill {
    position: relative;
    width: 200px;
    transition: width 0.3s ease;
}

.header-search-pill:focus-within {
    width: 300px;
}

.header-search-pill form {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ccc;
    border-radius: 999px; /* Pill */
    padding: 6px 16px;
}

.header-search-pill input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sign-in-link {
    font-weight: 600;
    color: var(--tm-brand-blue);
    font-size: 14px;
}

.user-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tm-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-gray-700);
}

/* --- PRODUCT PAGE UPDATES --- */
.product-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--tm-black);
}

.product-hero-bg {
    background: linear-gradient(180deg, rgba(2, 108, 223, 0.05) 0%, rgba(255,255,255,0) 100%);
    padding: 40px 0;
    border-bottom: 1px solid var(--tm-gray-200);
}

.sticky-ticket-box {
    position: sticky;
    top: 90px;
    background: white;
    border: 1px solid var(--tm-gray-300);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 24px;
    z-index: 100;
}

