/*
 * Vick's Supper Club Style Guide Tokens & Components
 * Version: v1.1 (2026-01-22)
 * Scope: Brand variables and components for Vick's Supper Club website.
 *        Include after Bootstrap to override defaults.
 *
 * Documentation: docs/Codebook/style-guide.md
 *
 * COLOR PALETTE
 * =============
 * Primary:
 *   - Gold: #d4af37 (primary accent)
 *   - Gold Light: #f4d03f (highlights, hover states)
 *   - Gold Dark: #b8860b (darker accents)
 *
 * Secondary:
 *   - Burgundy: #722f37 (badges, secondary accent)
 *   - Background Dark: #0d0d0d (page background)
 *   - Card Background: #1a1a1a (container backgrounds)
 *   - Text Cream: #f5e6c8 (body text)
 *
 * TYPOGRAPHY
 * ==========
 * Display: Playfair Display (headings, titles, phone)
 * Accent: Josefin Sans (event days, badges, addresses)
 * Body: Crimson Pro (event details, descriptions)
 *
 * RESPONSIVE BREAKPOINTS
 * ======================
 * Desktop: > 768px
 * Tablet: <= 768px
 * Mobile: <= 480px
 *
 * Powered by 712 Group Inc.
 */

:root {
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8860b;
    --burgundy: #722f37;
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --text-cream: #f5e6c8;
}

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

body {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    font-family: 'Crimson Pro', Georgia, serif;
}

/* Main Flyer Container */
.flyer {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    border: none;
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

/* Ornate Corner Decorations */
.flyer::before,
.flyer::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold);
    opacity: 0.6;
}

.flyer::before {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.flyer::after {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-bl, .corner-br {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold);
    opacity: 0.6;
    bottom: 20px;
}

.corner-bl {
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-br {
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Inner Border */
.flyer-inner {
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin: 30px 50px;
    padding: 40px 30px;
}

/* Header Section */
.flyer-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.club-name {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 14px;
    line-height: 1.15;
    text-transform: uppercase;
}

.decorative-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.decorative-line span {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0 8px;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    height: 1px;
    width: 50px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.years-strong {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 16px;
    text-transform: uppercase;
}

.celebrating {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-cream);
    font-size: 2rem;
    margin-top: 12px;
    font-weight: 400;
}

/* Logo Badge */
.logo-badge {
    position: absolute;
    top: 120px;
    right: 60px;
    width: 150px;
    height: 150px;
    border: 3px solid var(--gold);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    padding: 12px;
}

.logo-badge .logo-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--gold);
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
}

.logo-badge .logo-icon {
    font-size: 4rem;
    color: var(--gold);
}

/* Event Navigation */
.event-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600; /* Navigation layer per CSSBP z-index scale */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    color: var(--text-cream); /* WCAG: text color with background */
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

/* Nav Logo */
.event-nav-logo {
    flex-shrink: 0;
}

.event-nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Nav Links Container */
.event-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Spacer for fixed nav */
.event-nav-spacer {
    height: 70px; /* Match nav height */
}

.event-nav-link {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-cream);
    text-decoration: none;
    letter-spacing: 3px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.event-nav-link:hover {
    color: var(--gold-light);
    transform: translateY(-1px);
}

.event-nav-link.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    border-bottom: 2px solid var(--gold);
}

.event-nav-divider {
    color: rgba(212, 175, 55, 0.4);
    font-size: 1rem;
}

/* Scroll margin for anchor links */
.event-section[id] {
    scroll-margin-top: 100px;
}

/* Event Sections */
.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.event-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.event-section:last-of-type {
    border-bottom: none;
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.event-day {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.event-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    color: var(--burgundy);
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 10px;
}

.event-badge {
    background: var(--burgundy);
    color: var(--gold);
    font-size: 1.1rem;
    padding: 6px 16px;
    border-radius: 4px;
    margin-left: 15px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 50px;
    padding-left: 20px;
}

.event-details li {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--text-cream);
    list-style: none;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.event-details li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8rem;
    top: 9px;
}

.event-details .highlight {
    color: var(--gold);
    font-weight: 600;
}

/* Chicken & Fries Badge */
.chicken-badge {
    text-align: center;
    border: 3px solid var(--gold);
    padding: 25px 40px;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.3) 0%, rgba(0,0,0,0.8) 100%);
    max-width: 400px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.chicken-badge::before {
    content: '';
    display: block;
    width: 80%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 40px;
    position: relative;
    top: -65px;
    margin-bottom: -25px;
}

.chicken-badge .try-our {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-cream);
    font-style: italic;
    margin-bottom: 5px;
}

.chicken-badge .title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1.3;
    margin: 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.chicken-badge .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    font-style: italic;
    margin-top: 5px;
}

/* Grand Prize */
.grand-prize {
    text-align: right;
    margin-top: 5px;
    padding-right: 180px;
}

.grand-prize .label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.grand-prize .amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-color: var(--burgundy);
}

.grand-prize .amount-new {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    font-weight: 700;
}

/* Footer Section */
.flyer-footer {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.footer-map {
    flex-shrink: 0;
}

.footer-map iframe {
    display: block;
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.map-caption {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.map-caption a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-caption a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-info {
    flex: 1;
    text-align: center;
}

.address {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 300;
}

.phone {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    letter-spacing: 5px;
    font-weight: 600;
}

.phone a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.phone a::before {
    content: '\260E';
    font-size: 0.85em;
}

.phone a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.phone a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}

.email-list {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-cream);
    font-style: italic;
    margin-top: 25px;
    opacity: 0.9;
    line-height: 1.7;
}

.coming-soon {
    font-family: 'Josefin Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1.3rem;
    display: inline-block;
    margin-top: 12px;
}

/* Two Column Event Layout */
.two-col-event .event-details {
    grid-template-columns: 1fr 1fr;
}

.two-col-event .col-left,
.two-col-event .col-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Event Content Layout */
.event-content {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.event-content .event-details {
    flex: 1;
}

/* Event Images */
.event-image {
    flex-shrink: 0;
    width: 280px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(10%) contrast(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.event-image:hover img {
    filter: sepia(0%) contrast(1.1);
    transform: scale(1.02);
}

/* Powered By Footer */
.powered-by {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-cream);
    background: var(--bg-dark);
    letter-spacing: 2px;
}

.powered-by a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: var(--gold-light);
}

/* Scroll to Top Button */
#goToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Highest priority per CSSBP */
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--bg-dark);
    border: 2px solid var(--bg-dark);
    outline: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#goToTop:hover {
    background-color: var(--bg-dark);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

#goToTop:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    #goToTop {
        transition: none;
    }

    #goToTop:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .event-nav {
        padding: 8px 15px;
    }

    .event-nav-logo img {
        height: 40px;
    }

    .event-nav-links {
        gap: 10px;
    }

    .event-nav-link {
        font-size: 1rem;
        letter-spacing: 2px;
        padding: 6px 12px;
    }

    .event-nav-divider {
        font-size: 0.9rem;
    }

    .event-nav-spacer {
        height: 56px;
    }

    .event-section[id] {
        scroll-margin-top: 64px;
    }

    .flyer-inner {
        margin: 15px 20px;
        padding: 25px 20px;
    }

    .club-name {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .years-strong {
        font-size: 2rem;
        letter-spacing: 8px;
    }

    .celebrating {
        font-size: 1.4rem;
    }

    .logo-badge {
        width: 100px;
        height: 100px;
        top: 90px;
        right: 25px;
    }

    .logo-badge .logo-icon {
        font-size: 2.5rem;
    }

    .logo-badge .logo-text {
        font-size: 0.6rem;
    }

    .event-day {
        font-size: 1.2rem;
    }

    .event-name {
        font-size: 1.4rem;
    }

    .event-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-details li {
        font-size: 1.25rem;
    }

    .chicken-badge {
        max-width: 100%;
        padding: 20px 25px;
    }

    .chicken-badge .title {
        font-size: 1.3rem;
    }

    .grand-prize {
        padding-right: 0;
        text-align: center;
    }

    .address {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }

    .phone {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .email-list {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-map {
        order: -1;
        margin-bottom: 20px;
    }

    .footer-map iframe {
        width: 250px;
        height: 180px;
    }

    .footer-info {
        text-align: center;
    }

    .coming-soon {
        font-size: 1.1rem;
    }

    .event-content {
        flex-direction: column;
    }

    .event-image {
        width: 100%;
        max-width: 100%;
        height: 200px;
        order: -1;
    }
}

@media (max-width: 480px) {
    .event-nav {
        padding: 6px 10px;
    }

    .event-nav-logo img {
        height: 32px;
    }

    .event-nav-links {
        gap: 6px;
    }

    .event-nav-link {
        font-size: 0.85rem;
        letter-spacing: 1px;
        padding: 5px 8px;
    }

    .event-nav-divider {
        font-size: 0.8rem;
        margin: 0 2px;
    }

    .event-nav-spacer {
        height: 44px;
    }

    .event-section[id] {
        scroll-margin-top: 52px;
    }

    .club-name {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .years-strong {
        font-size: 1.5rem;
        letter-spacing: 6px;
    }

    .celebrating {
        font-size: 1.2rem;
    }

    .logo-badge {
        width: 80px;
        height: 80px;
        top: 75px;
        right: 20px;
    }

    .logo-badge .logo-icon {
        font-size: 2rem;
    }

    .event-day {
        font-size: 1rem;
    }

    .event-name {
        font-size: 1.2rem;
    }

    .event-details li {
        font-size: 1.1rem;
    }

    .address {
        font-size: 1.2rem;
    }

    .phone {
        font-size: 1.5rem;
    }
}
