/*
 * Programmatic SEO landing pages.
 *
 * Design system (live patterns):
 *   - Compact dark hero with magenta bottom border + static text-shadow
 *     (NO infinite-glow animation — accent bar carries the brand signature).
 *   - .seo-landing-accent-bar: 60×3 magenta→cyan gradient bar under the H1.
 *   - .seo-landing-pill-row--start: left-aligned pill rows (filter rails
 *     + nav rows). Default centred remains for the rare hero pill use.
 *   - .seo-landing-pill-scroll: wrapper that enables mobile horizontal
 *     scroll-snap with partial-cut-off cue (used for long filter rows).
 *   - .seo-landing-related: bottom "More ways to browse" sections; pills
 *     here get min-width to force scroll cut-off so the swipe affordance
 *     reads clearly with only 3 nav links.
 *   - Pagination shared via templates/seo/_pagination.html partial.
 *
 * Pages: /raves-in-<city>/, /<genre>-raves/, /raves-tonight/,
 *        /raves-this-weekend/, /clubs-in-<city>/, /clubs/<slug>/events/,
 *        /artists/<slug>/<city>/, /raves-in-<city>/<genre>/, /faq/<slug>/
 */

/* ---------- Page hero — compact, content-first ---------- */

.seo-landing-page .profile-hero {
    min-height: 0;
    text-align: center;
    background: linear-gradient(180deg, var(--rave-dark, #1a0033) 0%, #15001f 100%);
    border-bottom: 1px solid rgba(255, 0, 255, 0.45);
    box-shadow: 0 1px 0 rgba(255, 0, 255, 0.25), 0 8px 24px -16px rgba(255, 0, 255, 0.4);
}

.seo-landing-page .profile-hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Centred breadcrumb above the title. */
.seo-landing-page .profile-breadcrumb,
.seo-landing-page .seo-breadcrumb-line {
    text-align: center;
    justify-content: center;
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-family: Arial, Helvetica, sans-serif;
}

.seo-landing-page .profile-breadcrumb ol,
.seo-landing-page .seo-breadcrumb-line ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;
}
.seo-landing-page .profile-breadcrumb li,
.seo-landing-page .seo-breadcrumb-line li {
    display: inline;
}

.seo-landing-page .profile-breadcrumb a,
.seo-landing-page .seo-breadcrumb-line a {
    color: var(--rave-secondary, #00ffff);
    text-decoration: none;
}
.seo-landing-page .profile-breadcrumb a:hover,
.seo-landing-page .seo-breadcrumb-line a:hover {
    color: var(--rave-primary, #ff00ff);
}

/* H1 — static neon text-shadow (no animation; the accent bar carries the brand). */
.seo-landing-page .profile-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow:
        0 0 8px rgba(255, 0, 255, 0.65),
        0 0 18px rgba(0, 255, 255, 0.35);
    margin: 0 auto 0.85rem;
    line-height: 1.15;
    max-width: 900px;
}

/* Magenta accent bar — single brand signature element below the H1. */
.seo-landing-page .seo-landing-accent-bar {
    width: 60px;
    height: 3px;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.55);
}

.seo-landing-page .profile-hero-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .seo-landing-page .profile-hero-content { padding-top: 1.85rem; padding-bottom: 1.5rem; }
    .seo-landing-page .profile-hero-title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
    .seo-landing-page .profile-hero-subtitle { font-size: 0.95rem; }
    .seo-landing-page .seo-landing-accent-bar { width: 48px; height: 2px; }
}

@media (max-width: 575.98px) {
    .seo-landing-page .profile-hero-content { padding-top: 1.5rem; padding-bottom: 1.25rem; }
}

/* ---------- Filter pills — match blog .btn-category quality bar ---------- */

/* Horizontal row — single-line scroll-snap on every viewport. Filter rows
   carry 6-12 pills with count badges; forcing them to wrap onto multiple
   rows on desktop made the visual hierarchy lumpy (one row of 7 + an
   orphan eighth pill on its own). RA / DICE / Skiddle / Netflix all
   horizontal-scroll filter chips regardless of viewport width. */
.seo-landing-pill-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    justify-content: flex-start;
    scrollbar-width: none;
}
.seo-landing-pill-row::-webkit-scrollbar { display: none; }
.seo-landing-pill-row > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* `--start` modifier is now a no-op — left-alignment is the default since
   the row is always nowrap. Kept as a class hook so templates don't need
   to change, and so we can branch on it later if we ever bring back a
   centred variant for hero rows. */
.seo-landing-pill-row--start { justify-content: flex-start; }

.seo-landing-pill-scroll {
    position: relative;
}

/* Mobile: bleed the scroll rail edge-to-edge so the last pill clips at
   the viewport border (the partial cut-off is the swipe affordance).
   Desktop keeps natural container padding because the row usually
   doesn't overflow — when it does, the trailing pill cuts the same way. */
@media (max-width: 575.98px) {
    .seo-landing-pill-scroll {
        margin: 0 -15px;
    }
    .seo-landing-pill-row {
        padding: 0.25rem 15px 0.5rem 15px;
    }
}

/* SEO landing pills inherit fully from the unified `.profile-pill` base
   rule in `profiles.css`, which itself matches the blog `.btn-category`
   so every pill on the site shares one design system. The only SEO-
   specific touch is the `--active` state below and the mobile sizing
   at the bottom of this file. */
.seo-landing-page .profile-pill:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Active state — match the blog's .btn-category.active treatment. */
.profile-pill--active {
    background: rgba(255, 0, 255, 0.3);
    border-color: #ff00ff;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
    /* Don't disable pointer-events — breaks keyboard a11y + screen readers.
       aria-current handles the semantic state; visual styling marks it. */
}

/* Count badge inside a pill — magenta to create 2-colour rhythm with cyan accents. */
.seo-landing-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7em;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 0, 255, 0.22);
    border: 1px solid rgba(255, 0, 255, 0.55);
    color: #ff80ff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Mobile-specific tweaks. Base `.seo-landing-pill-row` already handles
   single-line scroll on every viewport, so this block only overrides
   pill sizing + restores wrap for short nav rows. */
@media (max-width: 575.98px) {
    .seo-landing-page .profile-pill { font-size: 0.8rem; padding: 0.5rem 1rem; }

    /* "More ways to browse" + empty-state pill rails wrap to multiple lines
       on mobile rather than horizontal-scroll. 3-4 short nav pills are
       short enough that nothing needs to be hidden; horizontal scroll is
       reserved for long filter rows ("Browse by genre" + count badges). */
    .seo-landing-related .seo-landing-pill-row,
    .profile-empty-state--rich .seo-landing-pill-row {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        margin: 0;
        gap: 0.5rem;
    }
    .seo-landing-related .seo-landing-pill-scroll,
    .profile-empty-state--rich .seo-landing-pill-scroll {
        margin: 0;
    }
}

/* The way-on links in the empty venue events page: a centred row that wraps
   at every width (it sits in a 560px box, so a scrolling row cut the last
   pill off on desktop), pills that wrap a long venue name inside themselves,
   and a 44px tap target. */
.seo-landing-empty-links {
    justify-content: center;
}

.seo-landing-empty-links .profile-pill {
    min-height: 44px;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
}

/* The empty state is the venue events page's main content, so it sits in the
   middle of the page, and from tablet width it is wider with a larger headline.
   On phones the links stack at one width. */
.venue-events-empty {
    margin-inline: auto;
}

@media (min-width: 768px) {
    .venue-events-empty {
        max-width: 760px;
        padding: var(--spacing-xl) calc(var(--spacing-xl) * 1.5);
    }

    .venue-events-empty strong {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .venue-events-empty span {
        font-size: 1.05rem;
    }
}

@media (max-width: 575.98px) {
    .venue-events-empty .seo-landing-empty-links {
        flex-direction: column;
        align-items: center;
    }

    .venue-events-empty .seo-landing-empty-links .profile-pill {
        width: 100%;
        max-width: 20rem;
    }
}

/* ---------- Section subheads — gentler than the hero, still on-brand ---------- */

.seo-landing-page .profile-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rave-secondary, #00ffff);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .seo-landing-page .profile-section-title { font-size: 1.2rem; }
}

/* Mobile: tighten tracking + slightly shrink so long city/genre names
   ("Upcoming events in Manchester", "Top venues in Wolverhampton") fit
   on a single line down to 360px viewport width. */
@media (max-width: 575.98px) {
    .seo-landing-page .profile-section-title {
        font-size: 0.92rem;
        letter-spacing: 0.05em;
    }
}

/* ---------- City intro and picks note: plain-text copy in the description box ---------- */

.seo-landing-intro .profile-description,
.seo-landing-picks-note {
    overflow-wrap: anywhere;
}

.seo-landing-intro .profile-description > p:last-child { margin-bottom: 0; }

/* ---------- Clubs-by-city — "Featured" + "All" pattern ---------- */

.seo-landing-venue-tile { height: 100%; }

.seo-landing-venue-tile .club-card-body {
    min-height: 84px;
}

.seo-landing-venue-tile__logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.seo-landing-venue-tile__placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.25), rgba(0, 255, 255, 0.15));
    border: 1px solid rgba(255, 0, 255, 0.35);
    color: #fff;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Featured venue card — larger, gradient-edge halo, "FEATURED" ribbon.
   Used for top 3 venues on /clubs-in-<city>/. */
.seo-landing-venue-tile--featured {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.18), rgba(0, 255, 255, 0.08));
    border: 1px solid #ff00ff;
    box-shadow: 0 0 24px rgba(255, 0, 255, 0.32);
    position: relative;
    overflow: hidden;
}
.seo-landing-venue-tile--featured::before {
    content: "FEATURED";
    position: absolute;
    top: 8px;
    right: -22px;
    transform: rotate(35deg);
    background: linear-gradient(45deg, #ff00ff, #9900ff);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 1.5rem;
    box-shadow: 0 0 6px rgba(255, 0, 255, 0.6);
    z-index: 1;
}
.seo-landing-venue-tile--featured .seo-landing-venue-tile__logo,
.seo-landing-venue-tile--featured .seo-landing-venue-tile__placeholder {
    width: 64px;
    height: 64px;
    font-size: 1.05rem;
}
.seo-landing-venue-tile--featured .club-card-name {
    font-size: 1.15rem;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

/* Bootstrap pagination — match the events page treatment. */
.seo-landing-page .pagination .page-link {
    background: rgba(20, 0, 30, 0.7);
    border: 1px solid rgba(255, 0, 255, 0.3);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    margin: 0 0.15rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.seo-landing-page .pagination .page-link:hover {
    background: rgba(255, 0, 255, 0.18);
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    color: #fff;
}
.seo-landing-page .pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #ff00ff, #9900ff);
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

/* Mobile pagination — tighten the wide Orbitron face so "« Prev" / "Next »"
   labels fit alongside the page numbers on a 360px viewport, but keep tap
   targets at ≥36px tall (WCAG 2.5.8 has 24px minimum; 36px is the safer
   target with comfortable spacing between adjacent page numbers). */
@media (max-width: 575.98px) {
    .seo-landing-page .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .seo-landing-page .pagination::-webkit-scrollbar { display: none; }
    .seo-landing-page .pagination .page-link {
        font-size: 0.72rem;
        padding: 0.55rem 0.6rem;
        margin: 0 0.15rem;
        letter-spacing: 0;
        min-height: 36px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .seo-landing-venue-tile__logo,
    .seo-landing-venue-tile__placeholder { width: 44px; height: 44px; font-size: 0.8rem; }
    .seo-landing-venue-tile--featured .seo-landing-venue-tile__logo,
    .seo-landing-venue-tile--featured .seo-landing-venue-tile__placeholder { width: 56px; height: 56px; }
    .seo-landing-pill-count { font-size: 0.7rem; }
}

/* ---------- Empty state — only used on city×genre when 0 events ---------- */

.seo-landing-page .profile-empty-state strong { font-family: 'Orbitron', sans-serif; }
