/* =============================================================================
   VENUE.CSS - Styles for individual public venue detail page
   All selectors scoped to #venuePage
   Self-contained: does NOT load the app's base.css. Brand colours mirror
   theme.css. Dark is default; light via [data-theme="light"] on <html>.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=Outfit:wght@400;500;600;700&display=swap');

/* -----------------------------------------------------------------------------
   Tokens (dark default)
   ----------------------------------------------------------------------------- */
#venuePage {
    --v-purple: #764ba2;
    --v-purple-light: #667eea;
    --v-orange: #f97316;
    --v-green: #22c55e;
    --v-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 60%, #9333ea 100%);
    --v-bg: #16162a;
    --v-surface: #1e2332;
    --v-surface-2: #262b3d;
    --v-ink: rgba(255, 255, 255, 0.96);
    --v-soft: rgba(255, 255, 255, 0.68);
    --v-muted: rgba(255, 255, 255, 0.45);
    --v-line: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] #venuePage {
    --v-bg: #f7f4fc;
    --v-surface: #ffffff;
    --v-surface-2: #f4f0fa;
    --v-ink: #221a33;
    --v-soft: #574a6e;
    --v-muted: #8b80a0;
    --v-line: rgba(118, 75, 162, 0.14);
}

/* -----------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    background: #16162a;
}

[data-theme="light"] html,
[data-theme="light"] body {
    background: #f7f4fc;
}

#venuePage * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#venuePage {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--v-ink);
    background: var(--v-bg);
    line-height: 1.6;
    min-height: 100vh;
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
#venuePage .venue-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 106px;
    padding: 0 32px;
    max-width: 1280px;
    margin: 0 auto;
}

#venuePage .venue-header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

#venuePage .venue-nav {
    display: flex;
    gap: 24px;
}

#venuePage .venue-nav-link {
    text-decoration: none;
    color: var(--v-soft);
    font-weight: 600;
    font-size: 0.95rem;
}

#venuePage .venue-nav-link:hover {
    color: var(--v-purple-light);
}

#venuePage .venue-theme-toggle {
    background: var(--v-surface-2);
    border: 1px solid var(--v-line);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v-ink);
}

/* -----------------------------------------------------------------------------
   Main
   ----------------------------------------------------------------------------- */
#venuePage .venue-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 70px;
}

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */
#venuePage .venue-hero {
    text-align: center;
    padding: 30px 0 40px;
}

#venuePage .venue-hero-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

#venuePage .venue-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
}

#venuePage .venue-badge-tier {
    background: var(--v-gradient);
    color: #fff;
}

#venuePage .venue-badge-type {
    background: var(--v-surface-2);
    color: var(--v-soft);
    border: 1px solid var(--v-line);
}

#venuePage .venue-hero-name {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 8px;
}

#venuePage .venue-hero-loc {
    color: var(--v-soft);
    font-weight: 600;
    margin-bottom: 4px;
}

#venuePage .venue-hero-address {
    color: var(--v-muted);
    font-size: 0.95rem;
}

/* -----------------------------------------------------------------------------
   Beers List
   ----------------------------------------------------------------------------- */
#venuePage .venue-beers {
    margin-top: 20px;
}

#venuePage .venue-beers-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

#venuePage .venue-beers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#venuePage .venue-beer {
    background: var(--v-surface);
    border: 1px solid var(--v-line);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

#venuePage .venue-beer-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

#venuePage .venue-beer-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--v-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

#venuePage .venue-beer-brewery {
    color: var(--v-purple-light);
    text-decoration: none;
}

#venuePage .venue-beer-brewery:hover {
    text-decoration: underline;
}

#venuePage .venue-beer-format {
    color: var(--v-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    text-transform: capitalize;
}

#venuePage .venue-beers-note {
    color: var(--v-muted);
    font-size: 0.82rem;
    margin-top: 16px;
}

#venuePage .venue-beers-empty {
    color: var(--v-soft);
    background: var(--v-surface);
    border: 1px solid var(--v-line);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

/* -----------------------------------------------------------------------------
   App CTA
   ----------------------------------------------------------------------------- */
#venuePage .venue-cta {
    margin-top: 50px;
    text-align: center;
    background: var(--v-surface-2);
    border-radius: 22px;
    padding: 40px 24px;
}

#venuePage .venue-cta-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#venuePage .venue-cta-text {
    color: var(--v-soft);
    max-width: 50ch;
    margin: 0 auto 22px;
}

#venuePage .venue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    transition: transform 0.2s;
}

#venuePage .venue-btn:hover {
    transform: translateY(-2px);
}

#venuePage .venue-btn-primary {
    background: var(--v-orange);
    color: #fff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
#venuePage .venue-footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--v-line);
}

#venuePage .venue-footer-links {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

#venuePage .venue-footer-link {
    color: var(--v-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

#venuePage .venue-footer-link:hover {
    color: var(--v-purple-light);
}

#venuePage .venue-footer-copy {
    color: var(--v-muted);
    font-size: 0.85rem;
}