/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-dark: #0f1419;
    --secondary-dark: #1a2332;
    --card-bg: rgba(26, 35, 50, 0.8);
    --accent-gold: #d4a853;
    --accent-gold-light: #e8c47c;
    --accent-copper: #b87333;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #6b7280;
    --border-color: rgba(212, 168, 83, 0.2);
    --gradient-gold: linear-gradient(135deg, #d4a853 0%, #b87333 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(184, 115, 51, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 35, 50, 0.5) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
}

.site-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--text-primary);
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 8px;
    list-style: none;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-gold);
    background: rgba(212, 168, 83, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(15, 20, 25, 0.3) 0%,
        rgba(15, 20, 25, 0.7) 50%,
        rgba(15, 20, 25, 1) 100%),
        url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #d4a853 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .year {
    display: block;
    font-size: 0.5em;
    color: var(--accent-gold);
    -webkit-text-fill-color: var(--accent-gold);
    letter-spacing: 8px;
    margin-top: 8px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-subtitle strong {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 28px;
    min-width: 100px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.countdown-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-music {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.btn-music:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-music.playing {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 83, 0.15);
    color: var(--accent-gold);
}

.btn-music.playing .music-icon {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.music-icon {
    margin-right: 4px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header (for non-hero pages) */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.5) 0%, var(--primary-dark) 100%);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.card a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
}

.card .label {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.85rem;
}

.card .value {
    color: var(--text-primary);
}

/* Info Cards */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

/* Day Cards */
.day-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.day-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.day-card ul {
    list-style: none;
    padding: 0;
}

.day-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.day-card li:last-child {
    border-bottom: none;
}

.day-card .time {
    font-weight: 600;
    color: var(--accent-gold);
    min-width: 90px;
    flex-shrink: 0;
}

.day-card .activity {
    flex: 1;
    color: var(--text-secondary);
}

.day-card .activity a {
    color: var(--accent-gold);
    text-decoration: none;
}

.day-card .activity a:hover {
    text-decoration: underline;
}

/* Weather Widget */
.weather-widget {
    background: var(--gradient-gold);
    border-radius: 12px;
    color: var(--primary-dark);
    padding: 20px 24px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.weather-icon {
    font-size: 2.5rem;
}

.weather-info {
    flex: 1;
}

.weather-temp {
    font-size: 1.3rem;
    font-weight: 700;
}

.weather-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Yelp Rating */
.yelp-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #d32323;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.yelp-rating::before {
    content: "★";
}

/* Distance Badge */
.distance-badge {
    display: inline-block;
    background: rgba(212, 168, 83, 0.2);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 10px;
}

/* Table Styles */
.data-table,
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
}

.data-table th,
.data-table td,
.info-table th,
.info-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th,
.info-table th {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(212, 168, 83, 0.1);
}

.data-table td,
.info-table td {
    color: var(--text-secondary);
}

.data-table td a,
.info-table td a {
    color: var(--accent-gold);
    text-decoration: none;
}

.data-table td a:hover,
.info-table td a:hover {
    text-decoration: underline;
}

.data-table tr:hover td,
.info-table tr:hover td {
    background: rgba(212, 168, 83, 0.05);
}

.highlight-row td {
    background: rgba(212, 168, 83, 0.1) !important;
}

/* Special Banners */
.wm-open-banner {
    background: linear-gradient(135deg, #2e7d32 0%, #ff6f00 100%);
    border-radius: 16px;
    color: white;
    padding: 30px;
    text-align: center;
    margin: 24px 0;
}

.wm-open-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.wm-open-banner a {
    color: white;
    text-decoration: underline;
}

.super-bowl-banner {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    border-radius: 16px;
    color: white;
    padding: 30px;
    text-align: center;
    margin: 24px 0;
}

.super-bowl-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* VRBO Button */
.vrbo-button {
    display: inline-block;
    background-color: #0057b8;
    color: white !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.vrbo-button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

/* Expense Tracking */
.expense-embed {
    background: rgba(212, 168, 83, 0.1);
    border: 2px dashed var(--accent-gold);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 24px 0;
}

.expense-embed h3 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.expense-embed p {
    color: var(--text-secondary);
}

.splitwise-button {
    display: inline-block;
    background-color: #1cc29f;
    color: white !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    margin: 12px;
    transition: all 0.3s ease;
}

.splitwise-button:hover {
    background-color: #17a689;
    transform: translateY(-2px);
}

.sheets-button {
    display: inline-block;
    background-color: #0f9d58;
    color: white !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    margin: 12px;
    transition: all 0.3s ease;
}

.sheets-button:hover {
    background-color: #0b8043;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.archive-link:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Golfers Grid */
.golfers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.golfer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.golfer-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.golfer-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.golfer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stats Cards (Results Page) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-card-featured {
    background: linear-gradient(135deg, #FF7043 0%, #D84315 100%);
    border: none;
}

.stat-card-featured h3 {
    color: rgba(255, 255, 255, 0.9);
}

.stat-winner {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.stat-detail {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-titles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 8px;
}

.stat-titles span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Archives Embed */
.archives-embed {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.archives-embed iframe {
    width: 100%;
    min-width: 600px;
    height: 500px;
    border: none;
    display: block;
}

.archives-tip {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 12px;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
}

/* Photo Gallery */
.photo-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
}

.photo-placeholder h3 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .day-card li {
        flex-direction: column;
        gap: 8px;
    }

    .day-card .time {
        min-width: auto;
    }

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

    .weather-widget {
        flex-direction: column;
        text-align: center;
    }

    .countdown {
        gap: 10px;
        flex-wrap: wrap;
    }

    .countdown-item {
        padding: 12px 16px;
        min-width: 70px;
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-winner {
        font-size: 2.5rem;
    }

    .archives-embed {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table,
    .info-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td,
    .info-table th,
    .info-table td {
        padding: 12px 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}
