/* ============================================
   MODERN GOLF CHAMPIONSHIP WEBSITE STYLES
   ============================================ */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Premium Golf Theme */
    --deep-green: #0d3b2e;
    --forest-green: #1a5740;
    --grass-green: #2d7a54;
    --sage-green: #5a8f75;
    --mint: #8fbaa6;
    
    --gold-dark: #8b6914;
    --gold: #c4a747;
    --gold-light: #d4b75c;
    --gold-shine: #f4e6b5;
    
    --cream: #f8f6f0;
    --cream-dark: #e8e6dd;
    --sand: #d4cfc2;
    
    --dark: #1a1f1e;
    --dark-soft: #2a2f2e;
    --text-dark: #1f1f1f;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   HERO SECTION - Golf Course Background
   ============================================ */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: var(--deep-green);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 59, 46, 0.5) 0%,
        rgba(26, 87, 64, 0.55) 50%,
        rgba(13, 59, 46, 0.7) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 24px;
    max-width: 700px;
    margin-top: auto;
    padding-bottom: 80px;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 3px solid rgba(196, 167, 71, 0.7);
    margin-bottom: 12px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.trophy-icon {
    width: 56px;
    height: 56px;
    color: var(--gold);
    filter: drop-shadow(0 3px 10px rgba(196, 167, 71, 0.5));
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 32px auto 0;
}

/* ============================================
   CHAMPION BANNER
   ============================================ */
.champion-banner {
    padding: 60px 24px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.champion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.champion-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 4px 6px var(--shadow),
        0 12px 24px var(--shadow-md),
        inset 0 0 0 1px rgba(196, 167, 71, 0.2);
    position: relative;
    text-align: center;
}

.champion-year {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--cream);
    padding: 8px 16px;
    border-radius: 20px;
}

.champion-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(196, 167, 71, 0.4));
}

.champion-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grass-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.champion-name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--deep-green);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.champion-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-top: 8px;
}

.stat-divider {
    font-size: 2rem;
    color: var(--sand);
    font-weight: 300;
}

/* ============================================
   HISTORY SECTION - Timeline Design
   ============================================ */
.history-section {
    padding: 100px 24px;
    background: var(--deep-green);
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(90, 143, 117, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 122, 84, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--mint);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.history-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(196, 167, 71, 0.3) 20%,
        rgba(196, 167, 71, 0.3) 80%,
        transparent
    );
    transform: translateX(-50%);
}

.history-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}

.history-year {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mint);
    font-family: 'Playfair Display', serif;
}

.history-marker {
    width: 20px;
    height: 20px;
    background: var(--dark-soft);
    border: 3px solid var(--sage-green);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.history-item.dillan .history-marker {
    border-color: var(--grass-green);
    background: var(--grass-green);
    box-shadow: 0 0 0 6px rgba(45, 122, 84, 0.2);
}

.champion-marker {
    width: 48px;
    height: 48px;
    background: var(--gold);
    border: 4px solid var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 8px rgba(196, 167, 71, 0.2),
        0 4px 12px rgba(196, 167, 71, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.champion-marker svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.history-winner {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.winner-record {
    display: block;
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 400;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

/* ============================================
   ROUNDS SECTION - Match Results
   ============================================ */
.rounds-section {
    padding: 100px 24px;
    background: var(--cream);
    position: relative;
}

.rounds-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(to bottom, var(--deep-green), var(--cream));
    z-index: 0;
}

.rounds-section .container {
    position: relative;
    z-index: 1;
}

.scoreboard-container {
    margin-bottom: 80px;
}

.scoreboard {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 10px 30px var(--shadow-md),
        0 2px 8px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.score-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--grass-green), var(--forest-green));
    box-shadow: 0 4px 12px rgba(45, 122, 84, 0.3);
}

.dad-side .player-avatar {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 12px rgba(196, 167, 71, 0.3);
    font-size: 2.5rem;
}

.player-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-score {
    font-size: 4rem;
    font-weight: 900;
    color: var(--grass-green);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.dad-side .player-score {
    color: var(--gold);
}

.score-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--cream);
    border-radius: 50%;
}

.vs-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

/* Rounds Grid */
.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.round-item {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.round-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--grass-green), var(--forest-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.round-item.dillan-win::before {
    background: linear-gradient(90deg, var(--grass-green), var(--forest-green));
}

.round-item.dad-win::before {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.round-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 16px var(--shadow-md),
        0 2px 4px var(--shadow);
}

.round-item:hover::before {
    transform: scaleX(1);
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.round-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.round-result {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--white);
}

.round-result.dillan {
    background: var(--grass-green);
}

.round-result.dad {
    background: var(--gold);
}

.course-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.round-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 16px;
}

.winner-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(45, 122, 84, 0.1);
    color: var(--grass-green);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.winner-badge.dad {
    background: rgba(196, 167, 71, 0.1);
    color: var(--gold-dark);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 100px 24px;
    background: linear-gradient(to bottom, var(--white), var(--cream-dark));
}

.featured-gallery {
    margin-bottom: 48px;
}

.featured-photo {
    max-width: 1000px;
    margin: 0 auto;
}

.photo-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px var(--shadow-lg),
        0 4px 12px var(--shadow-md);
    background: var(--white);
    padding: 12px;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(13, 59, 46, 0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px var(--shadow-md);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 16px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 24px 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-main {
    margin-bottom: 48px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(196, 167, 71, 0.15);
    border-radius: 50%;
    margin-bottom: 24px;
}

.footer-trophy {
    width: 40px;
    height: 40px;
    color: var(--gold);
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-size: 1.125rem;
    color: var(--mint);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(90, 143, 117, 0.2);
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-est,
.footer-current {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 400;
}

.footer-current {
    color: var(--gold-light);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .history-timeline {
        padding-left: 40px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .history-item {
        grid-template-columns: auto 1fr;
        gap: 24px;
    }
    
    .history-year {
        display: none;
    }
    
    .history-marker {
        margin-top: 8px;
    }
    
    .history-winner::before {
        content: attr(data-year);
        display: block;
        font-size: 0.875rem;
        color: var(--mint);
        opacity: 0.7;
        margin-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .champion-card {
        padding: 36px 24px;
    }
    
    .champion-year {
        position: static;
        margin-bottom: 16px;
    }
    
    .champion-stats {
        gap: 24px;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .scoreboard {
        padding: 32px 24px;
        gap: 24px;
    }
    
    .player-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .dad-side .player-avatar {
        font-size: 2rem;
    }
    
    .player-score {
        font-size: 3rem;
    }
    
    .rounds-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .logo-badge {
        width: 80px;
        height: 80px;
    }
    
    .trophy-icon {
        width: 36px;
        height: 36px;
    }
    
    .scoreboard {
        flex-direction: column;
        gap: 32px;
    }
    
    .score-divider {
        transform: rotate(90deg);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   ANIMATIONS & INTERACTIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .round-item,
    .gallery-card,
    .history-item {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .round-item:nth-child(1) { animation-delay: 0.1s; }
    .round-item:nth-child(2) { animation-delay: 0.2s; }
    .round-item:nth-child(3) { animation-delay: 0.3s; }
    .round-item:nth-child(4) { animation-delay: 0.4s; }
    .round-item:nth-child(5) { animation-delay: 0.5s; }
    .round-item:nth-child(6) { animation-delay: 0.6s; }
    .round-item:nth-child(7) { animation-delay: 0.7s; }
    .round-item:nth-child(8) { animation-delay: 0.8s; }
    .round-item:nth-child(9) { animation-delay: 0.9s; }
}
