/* ============================================================
   HomeAway — Global Styles
   Color system mirrors the React Native app's ThemeContext.
   ============================================================ */

/* --- Dark mode (default) --- */
:root,
[data-theme="dark"] {
    --ha-text:              #eae9fc;
    --ha-text-secondary:    rgba(234, 233, 252, 0.7);
    --ha-text-tertiary:     rgba(234, 233, 252, 0.5);
    --ha-text-inverse:      #ffffff;
    --ha-text-on-dark:      #ffffff;

    --ha-bg:                #0f1020;
    --ha-bg-dark:           #0f1020;
    --ha-surface:           #1a1a2e;
    --ha-surface-variant:   #252538;
    --ha-surface-hover:     #2a2a3f;

    --ha-primary:           #152c72;
    --ha-secondary:         #020024;

    --ha-accent:            #107db7;
    --ha-accent-hover:      #0e6ba3;
    --ha-accent-light:      #75c5f9;
    --ha-accent-solid:      #3da5d9;
    --ha-accent-bg:         rgba(16, 125, 183, 0.12);
    --ha-accent-muted:      rgba(16, 125, 183, 0.55);

    --ha-green:             #00af80;
    --ha-green-bg:          rgba(34, 197, 94, 0.12);
    --ha-red:               #be262f;
    --ha-red-bg:            rgba(190, 38, 47, 0.12);
    --ha-orange:            #e86a10;

    --ha-success:           #28a745;
    --ha-error:             #dc3545;
    --ha-warning:           #ffc107;

    --ha-border:            rgba(234, 233, 252, 0.2);
    --ha-border-light:      rgba(234, 233, 252, 0.1);
    --ha-border-heavy:      rgba(234, 233, 252, 0.3);
    --ha-divider:           rgba(234, 233, 252, 0.12);

    --ha-overlay:           rgba(234, 233, 252, 0.1);
    --ha-overlay-medium:    rgba(234, 233, 252, 0.2);
    --ha-dark-overlay:      rgba(0, 0, 0, 0.5);
    --ha-dark-overlay-heavy:rgba(0, 0, 0, 0.7);

    --ha-card-gradient:     linear-gradient(to bottom, rgba(16, 125, 183, 0.09), transparent);
    --ha-card-shadow:       0 1px 4px rgba(0, 0, 0, 0.18);

    --ha-gold:              #FFD700;
    --ha-silver:            #C0C0C0;
    --ha-bronze:            #CD7F32;
}

/* --- Light mode --- */
[data-theme="light"] {
    --ha-text:              #0f1020;
    --ha-text-secondary:    rgba(26, 26, 46, 0.7);
    --ha-text-tertiary:     rgba(26, 26, 46, 0.5);
    --ha-text-inverse:      #000000;
    --ha-text-on-dark:      #ffffff;

    --ha-bg:                #eae1d3;
    --ha-bg-dark:           #eae1d3;
    --ha-surface:           #efe8dc;
    --ha-surface-variant:   #e8e8e8;
    --ha-surface-hover:     #e0e0e0;

    --ha-border:            rgba(0, 0, 0, 0.15);
    --ha-border-light:      rgba(0, 0, 0, 0.1);
    --ha-border-heavy:      rgba(0, 0, 0, 0.2);
    --ha-divider:           rgba(0, 0, 0, 0.12);

    --ha-overlay:           rgba(0, 0, 0, 0.05);
    --ha-overlay-medium:    rgba(0, 0, 0, 0.1);

    --ha-accent-muted:      rgba(16, 125, 183, 0.45);

    --ha-card-shadow:       0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --- Sport-specific accent colors --- */
:root {
    --ha-mlb-blue:  #003087;
    --ha-mlb-red:   #BA0021;
    --ha-nba-red:   #C8102E;
    --ha-nba-orange:#FFA500;
    --ha-nfl-blue:  #013369;
    --ha-nfl-green: #00A651;
    --ha-nhl-black: #000000;
    --ha-nhl-blue:  #87CEEB;
}

/* ============================================================
   Reset & Base
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
body.flavor-flavor {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--ha-bg) !important;
    color: var(--ha-text);
    background-color: var(--ha-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ha-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--ha-accent-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ha-text);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    color: var(--ha-text);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ============================================================
   Card System
   ============================================================ */

.ha-card {
    background: var(--ha-surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--ha-card-shadow);
    position: relative;
    overflow: hidden;
}

.ha-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--ha-card-gradient);
    pointer-events: none;
    z-index: 0;
}

.ha-card > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   Theme Toggle Button
   ============================================================ */

.ha-theme-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.ha-theme-toggle__icon {
    font-size: 20px;
    line-height: 1;
}

[data-theme="dark"] .ha-theme-toggle {
    background: transparent;
}

[data-theme="dark"] .ha-theme-toggle__icon {
    color: var(--ha-gold);
}

[data-theme="light"] .ha-theme-toggle {
    background: var(--ha-accent);
}

[data-theme="light"] .ha-theme-toggle:hover {
    background: var(--ha-accent-hover);
}

[data-theme="light"] .ha-theme-toggle__icon {
    color: var(--ha-gold);
}

.ha-theme-toggle:hover,
.ha-theme-toggle:focus,
.ha-theme-toggle:active {
    outline: none;
    box-shadow: none;
}

.ha-theme-toggle__label {
    display: none;
}

/* ============================================================
   GeneratePress overrides
   ============================================================ */

body .site-header,
body .main-navigation {
    background-color: var(--ha-bg-dark);
    border-bottom: 1px solid var(--ha-border);
}

body .site-header .main-title a,
body .main-navigation a {
    color: var(--ha-text);
}

body .main-navigation a:hover {
    color: var(--ha-accent);
}

body .site-content,
body .site,
body #page {
    background-color: var(--ha-bg) !important;
}

body .site-footer {
    background-color: var(--ha-bg-dark);
    color: var(--ha-text-secondary);
    border-top: 1px solid var(--ha-border);
}

body .site-footer a {
    color: var(--ha-text-secondary);
}

body .site-footer a:hover {
    color: var(--ha-accent);
}

body .inside-article {
    background-color: transparent;
    padding: 0;
}

/* ============================================================
   Utility Classes
   ============================================================ */

.ha-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.ha-section {
    margin-bottom: 32px;
}

.ha-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ha-text);
}

.ha-section-description {
    font-size: 14px;
    color: var(--ha-text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ha-star {
    color: var(--ha-gold);
}

/* Glass pill effect — dark mode only */
/* Old (subtle) style preserved for reference:
   background: rgba(16, 125, 183, 0.15); color: var(--ha-accent);
   border: 1px solid rgba(16, 125, 183, 0.25);
   box-shadow: 0 0 10px rgba(16, 125, 183, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
*/
[data-theme="dark"] .ha-glass-pill {
    position: relative;
    overflow: hidden;
    background: rgba(16, 125, 183, 0.25) !important;
    color: #ffffff !important;
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ha-glass-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        rgba(16, 125, 183, 0.35),
        rgba(16, 125, 183, 0.08)
    );
    pointer-events: none;
}

/* Old green (subtle) style preserved for reference:
   background: rgba(0, 175, 128, 0.15); color: var(--ha-green);
   border-color: rgba(0, 175, 128, 0.25);
*/
[data-theme="dark"] .ha-glass-pill--green {
    background: rgba(0, 175, 128, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(0, 175, 128, 0.4);
    box-shadow:
        0 0 14px rgba(0, 175, 128, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ha-glass-pill--green::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 175, 128, 0.35),
        rgba(0, 175, 128, 0.08)
    );
}

.ha-pill,
.ha-pill:visited,
.ha-pill:active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--ha-accent-bg);
    color: var(--ha-accent);
    text-decoration: none;
}

.ha-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ha-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .ha-grid-2 {
        grid-template-columns: 1fr;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ha-pill--active,
.ha-pill--active:visited,
.ha-pill--active:active {
    background: var(--ha-accent);
    color: #fff !important;
}

/* Glass effect on filter pills — dark mode */
/* Old (subtle) style preserved for reference:
   background: rgba(16, 125, 183, 0.12); color: var(--ha-accent);
   border: 1px solid rgba(16, 125, 183, 0.2);
   box-shadow: 0 0 8px rgba(16, 125, 183, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
*/
[data-theme="dark"] .ha-pill {
    position: relative;
    overflow: hidden;
    background: rgba(16, 125, 183, 0.25);
    color: #ffffff;
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ha-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(16, 125, 183, 0.35), rgba(16, 125, 183, 0.08));
    pointer-events: none;
}

[data-theme="dark"] .ha-pill--active {
    background: rgba(16, 125, 183, 0.4);
    color: #ffffff !important;
    border-color: rgba(16, 125, 183, 0.55);
    box-shadow:
        0 0 18px rgba(16, 125, 183, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .ha-pill--active::before {
    background: linear-gradient(to bottom, rgba(16, 125, 183, 0.45), rgba(16, 125, 183, 0.15));
}

/* ============================================================
   Site Header
   ============================================================ */

.ha-site-header {
    background: linear-gradient(to bottom, rgba(16, 125, 183, 0.09), transparent), var(--ha-bg-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ha-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 24px;
}

.ha-site-header__brand {
    text-decoration: none;
}

.ha-site-header__logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--ha-text);
    letter-spacing: -0.02em;
}

.ha-site-header__logo-img {
    height: 41px;
    width: auto;
    display: block;
}

.ha-site-header__nav {
    flex: 1;
}

.ha-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
}

.ha-nav-list li a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.15s ease;
}

/* Light mode: accent text pills, no wrapper */
[data-theme="light"] .ha-nav-list li a {
    background: transparent;
    color: var(--ha-accent);
}

[data-theme="light"] .ha-nav-list li a:hover,
[data-theme="light"] .ha-nav-list li.current-menu-item a {
    background: var(--ha-accent-bg);
    color: var(--ha-accent);
}

/* Dark mode: glasspill treatment */
[data-theme="dark"] .ha-nav-list li a {
    position: relative;
    overflow: hidden;
    background: rgba(16, 125, 183, 0.25);
    color: #ffffff;
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ha-nav-list li a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(16, 125, 183, 0.35), rgba(16, 125, 183, 0.08));
    pointer-events: none;
}

[data-theme="dark"] .ha-nav-list li a:hover,
[data-theme="dark"] .ha-nav-list li.current-menu-item a {
    background: rgba(16, 125, 183, 0.35);
    color: #ffffff;
    box-shadow:
        0 0 18px rgba(16, 125, 183, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ha-nav-list li.current-menu-item a {
    color: var(--ha-accent);
    background: var(--ha-accent-bg);
}

.ha-site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ha-header-cta,
.ha-header-cta:visited,
.ha-header-cta:active,
.ha-header-cta:focus {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ha-accent);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.2s ease;
}

.ha-header-cta:hover {
    background: var(--ha-accent-hover);
    color: #fff !important;
}

[data-theme="dark"] .ha-header-cta,
[data-theme="dark"] .ha-header-cta:visited,
[data-theme="dark"] .ha-header-cta:active,
[data-theme="dark"] .ha-header-cta:focus {
    position: relative;
    overflow: hidden;
    background: rgba(16, 125, 183, 0.25);
    color: #ffffff !important;
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ha-header-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        rgba(16, 125, 183, 0.30),
        rgba(16, 125, 183, 0.06)
    );
    pointer-events: none;
}

[data-theme="dark"] .ha-header-cta:hover {
    background: rgba(16, 125, 183, 0.35);
    color: #ffffff !important;
    box-shadow:
        0 0 18px rgba(16, 125, 183, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* --- Early Signup Popup --- */

.ha-signup-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ha-signup-popup--open {
    display: flex;
}

.ha-signup-popup::before {
    content: '';
    position: absolute;
    inset: 0;
}

[data-theme="dark"] .ha-signup-popup::before {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

[data-theme="light"] .ha-signup-popup::before {
    background: rgba(0, 0, 0, 0.4);
}

.ha-signup-popup__content {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}

[data-theme="dark"] .ha-signup-popup__content {
    background: rgba(16, 125, 183, 0.1);
    border: 1px solid rgba(16, 125, 183, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 40px rgba(16, 125, 183, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

[data-theme="light"] .ha-signup-popup__content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}

.ha-signup-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    color: inherit;
}

.ha-signup-popup__close:hover { opacity: 1; }

.ha-signup-popup__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px;
}

.ha-signup-popup__desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0 0 24px;
}

.ha-signup-popup__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ha-signup-popup__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

[data-theme="dark"] .ha-signup-popup__link {
    background: rgba(16, 125, 183, 0.25);
    color: #ffffff;
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ha-signup-popup__link:hover {
    background: rgba(16, 125, 183, 0.35);
    color: #ffffff;
}

[data-theme="light"] .ha-signup-popup__link {
    background: var(--ha-accent, #107db7);
    color: #ffffff;
}

[data-theme="light"] .ha-signup-popup__link:hover {
    background: var(--ha-accent-hover, #0d6a9e);
    color: #ffffff;
}

.ha-signup-popup__link .mdi {
    font-size: 20px;
}

/* Glass effect on Browse All Stadiums button */
/* Old (subtle) style preserved for reference:
   background: rgba(16, 125, 183, 0.15); color: var(--ha-accent);
   border: 1px solid rgba(16, 125, 183, 0.25);
*/
[data-theme="dark"] .landing-browse-btn,
[data-theme="dark"] .landing-browse-btn:visited,
[data-theme="dark"] .landing-browse-btn:active {
    position: relative;
    overflow: hidden;
    background: rgba(16, 125, 183, 0.25);
    color: #ffffff;
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .landing-browse-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(16, 125, 183, 0.35), rgba(16, 125, 183, 0.08));
    pointer-events: none;
}

[data-theme="dark"] .landing-browse-btn:hover {
    background: rgba(16, 125, 183, 0.35);
    color: #ffffff;
    box-shadow:
        0 0 18px rgba(16, 125, 183, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* --- Mobile menu hamburger --- */

.ha-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.ha-mobile-menu-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ha-accent);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ha-mobile-menu-toggle[aria-expanded="true"] .ha-mobile-menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ha-mobile-menu-toggle[aria-expanded="true"] .ha-mobile-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.ha-mobile-menu-toggle[aria-expanded="true"] .ha-mobile-menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile nav dropdown --- */

.ha-mobile-nav {
    display: none;
    background: var(--ha-surface);
    border-top: 1px solid var(--ha-border);
    padding: 12px 0;
}

.ha-mobile-nav--open {
    display: block;
}

.ha-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ha-mobile-nav__list li a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ha-accent);
    text-decoration: none;
    transition: background 0.15s ease;
}

.ha-mobile-nav__list li a:visited,
.ha-mobile-nav__list li a:active {
    color: var(--ha-accent);
}

.ha-mobile-nav__list li a:hover {
    background: var(--ha-accent-bg);
    color: var(--ha-accent-light);
}

.ha-mobile-nav__toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 24px;
    border-top: 1px solid var(--ha-border);
    margin-top: 8px;
}

/* ============================================================
   Site Footer
   ============================================================ */

.ha-site-footer {
    background: var(--ha-bg-dark);
    border-top: 1px solid var(--ha-border);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.ha-site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ha-site-footer__brand {
    max-width: 300px;
}

.ha-site-footer__logo-img {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.ha-site-footer__logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--ha-text);
}

.ha-site-footer__tagline {
    font-size: 14px;
    color: var(--ha-text-secondary);
    margin-top: 6px;
}

.ha-site-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ha-site-footer__col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ha-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ha-site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ha-site-footer__col li {
    margin-bottom: 6px;
}

.ha-site-footer__col a {
    font-size: 14px;
    color: var(--ha-text-secondary);
}

.ha-site-footer__col a:hover {
    color: var(--ha-accent);
}

.ha-site-footer__bottom {
    border-top: 1px solid var(--ha-divider);
    padding-top: 16px;
    font-size: 13px;
    color: var(--ha-text-tertiary);
}

/* ============================================================
   Landing Page
   ============================================================ */

.landing-hero {
    padding: 100px 0 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 15, 50, 0.75),
        rgba(10, 15, 50, 0.85)
    );
    z-index: -1;
}

.landing-hero__title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 16px;
    color: #f0eeff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.landing-hero__subtitle {
    font-size: 18px;
    color: rgba(240, 238, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.landing-hero__badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.landing-hero__store-badge img {
    height: 50px;
    width: auto;
}

.landing-hero__coming-soon {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: rgba(16, 125, 183, 0.25);
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.landing-sports {
    padding: 60px 0;
}

.landing-sports__heading {
    text-align: center;
    margin-bottom: 32px;
    font-size: 28px;
}

.landing-sports__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-sport-card {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: rgba(16, 125, 183, 0.18) !important;
    border: 1px solid rgba(16, 125, 183, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="light"] .landing-sport-card {
    background: var(--ha-accent) !important;
    border-color: var(--ha-accent);
}

[data-theme="light"] .landing-sport-card__icon,
[data-theme="light"] .landing-sport-card__name,
[data-theme="light"] .landing-sport-card__label,
[data-theme="light"] .landing-sport-card__count {
    color: #fff;
}

.landing-sport-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 125, 183, 0.2);
}

.landing-sport-card__icon {
    font-size: 36px;
    color: var(--ha-accent);
    line-height: 1;
}

.landing-sport-card__name {
    font-size: 28px;
    font-weight: 700;
    color: var(--ha-accent);
}

.landing-sport-card__label {
    font-size: 13px;
    color: #fff;
}

.landing-sport-card__count {
    font-size: 14px;
    font-weight: 600;
    color: var(--ha-accent);
}

.landing-featured {
    padding: 60px 0 80px;
}

.landing-featured__heading {
    text-align: center;
    margin-bottom: 32px;
    font-size: 28px;
}

.landing-featured__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-featured__cta {
    text-align: center;
    margin-top: 32px;
}

.landing-browse-btn,
.landing-browse-btn:visited,
.landing-browse-btn:active {
    display: inline-block;
    padding: 12px 32px;
    background: var(--ha-accent);
    color: var(--ha-text-on-dark);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.landing-browse-btn:hover {
    background: var(--ha-accent-hover);
    color: var(--ha-text-on-dark);
    text-decoration: none;
}

/* ============================================================
   Archive Page
   ============================================================ */

.archive-stadiums {
    padding: 40px 0 60px;
}

.archive-stadiums__header {
    margin-bottom: 24px;
}

.archive-stadiums__title {
    font-size: 32px;
    margin-bottom: 8px;
}

.archive-stadiums__description {
    font-size: 16px;
    color: var(--ha-text-secondary);
    max-width: 600px;
}

.archive-stadiums__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.archive-stadiums__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.archive-stadium-card {
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.archive-stadium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.archive-stadium-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.archive-stadium-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.archive-stadium-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.archive-stadium-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.archive-stadium-card__team {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.archive-stadium-card__pills-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.archive-stadium-card__rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    background: var(--ha-accent);
    color: #fff;
    border-radius: 20px;
}

.archive-stadium-card__sport-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--ha-accent);
    border-radius: 20px;
}

.archive-stadium-card__body {
    padding: 12px 14px;
}

.archive-stadium-card__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.archive-stadium-card__label {
    font-size: 13px;
    color: var(--ha-text-secondary);
}

.archive-stadium-card__value {
    font-size: 13px;
    font-weight: 600;
    color: var(--ha-text);
}

.archive-stadium-card__address {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--ha-accent);
}

.archive-stadiums__pagination {
    margin-top: 32px;
    text-align: center;
}

.archive-stadiums__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.archive-stadiums__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--ha-text-secondary);
    background: var(--ha-surface);
    text-decoration: none;
    transition: all 0.15s ease;
}

.archive-stadiums__pagination .nav-links > *:first-child {
    padding-left: 10px;
}

.archive-stadiums__pagination .page-numbers.prev,
.archive-stadiums__pagination .page-numbers.next {
    padding: 0 14px;
}

.archive-stadiums__pagination .page-numbers.current,
.archive-stadiums__pagination .page-numbers:hover {
    background: var(--ha-accent);
    color: var(--ha-text-on-dark);
}

/* Glass pill pagination — dark mode only */
[data-theme="dark"] .archive-stadiums__pagination .page-numbers {
    position: relative;
    overflow: hidden;
    background: rgba(16, 125, 183, 0.15);
    color: var(--ha-accent);
    border: 1px solid rgba(16, 125, 183, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 10px rgba(16, 125, 183, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .archive-stadiums__pagination .page-numbers::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        rgba(16, 125, 183, 0.28),
        rgba(16, 125, 183, 0.05)
    );
    pointer-events: none;
}

[data-theme="dark"] .archive-stadiums__pagination .page-numbers.current,
[data-theme="dark"] .archive-stadiums__pagination .page-numbers:hover {
    background: rgba(16, 125, 183, 0.45);
    color: #ffffff;
    border-color: rgba(16, 125, 183, 0.5);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .archive-stadiums__pagination .page-numbers.current::before,
[data-theme="dark"] .archive-stadiums__pagination .page-numbers:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(16, 125, 183, 0.45),
        rgba(16, 125, 183, 0.15)
    );
}

/* ============================================================
   Responsive: Header, Footer, Landing, Archive
   ============================================================ */

@media (max-width: 960px) {
    .landing-sports__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ha-site-footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ha-site-header {
        position: fixed;
        left: 0;
        right: 0;
    }

    body {
        padding-top: 60px;
    }

    .ha-site-header__nav {
        display: none;
    }

    .ha-site-header__actions > .ha-theme-toggle {
        display: none;
    }

    .ha-mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .landing-hero {
        padding: 100px 0 50px;
    }

    .landing-hero__title {
        font-size: 28px;
    }

    .landing-hero__subtitle {
        font-size: 16px;
    }

    .landing-featured__heading,
    .landing-sports__heading {
        display: none;
    }

    .landing-sports__grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-featured__grid {
        grid-template-columns: 1fr;
    }

    .ha-site-footer__links {
        grid-template-columns: 1fr;
    }

    .archive-stadiums__grid {
        grid-template-columns: 1fr;
    }
}
