/* CSS Variables */
:root {
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --primary-dark: #4c51bf;
    --secondary-color: #764ba2;
    --text-dark: #1a202c;
    --text-light: #718096;
    --light-gray: #e2e8f0;
    --dark-blue: #2d3748;
    --white: #ffffff;
}

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

html {
    /* scroll-behavior: smooth; /* Temporarily disabled to fix jumping */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    color: #667eea;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Special styling for Members link */
.nav-link[href="/members/"] {
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.nav-link[href="/members/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    color: white !important;
}

.nav-link[href="/members/"]::after {
    display: none; /* Remove the underline effect for the Members button */
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-hamburger .bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-placeholder {
    font-size: 8rem;
    animation: bounce 2s infinite;
}

.hero-trophy {
    max-width: 300px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Format Section */
.format-overview {
    max-width: 600px;
    margin: 2rem auto 3rem;
    text-align: center;
}

.points-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.points-summary h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.points-summary p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.format-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.format-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.format-card h3, .format-card p {
    padding: 0 1.5rem;
}

.format-card h3 {
    padding-top: 1.5rem;
    color: #333;
}

.format-details {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    font-size: 0.9rem;
    font-weight: 500;
}

.format-type {
    color: #667eea;
}

.format-count {
    color: #666;
}

/* Teams Section */
.teams {
    background: #f8fafc;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.team-usa::before {
    background: linear-gradient(90deg, #B22234 0%, #FFFFFF 50%, #3C3B6E 100%);
}

.team-international::before {
    background: linear-gradient(90deg, #1e3a8a 0%, #10b981 50%, #f59e0b 100%);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.team-logo {
    margin-bottom: 1.5rem;
}

.team-flag {
    font-size: 5rem;
    margin-bottom: 0;
}

.team-logo-img {
    max-width: 60px !important;
    max-height: 60px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.team-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.team-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    background: #f0f8ff;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Schedule Section */
.schedule-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.schedule-item:hover {
    transform: translateX(10px);
}

.schedule-date {
    flex-shrink: 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
}

.schedule-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}

.schedule-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.schedule-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.schedule-time {
    display: inline-block;
    background: #f0f8ff;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.schedule-note {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.schedule-note p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Pairings Party Details Styles */
.pairings-party-details {
    margin-top: 1rem;
}

.pairings-party-details .venue-info,
.pairings-party-details .event-details,
.pairings-party-details .menu-info {
    margin-bottom: 1.5rem;
}

.pairings-party-details h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.pairings-party-details .address {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.pairings-party-details .event-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

.pairings-party-details .menu-section {
    margin-bottom: 1rem;
}

.pairings-party-details .menu-section strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.pairings-party-details ul {
    margin: 0 0 0 1rem;
    padding: 0;
    list-style-type: disc;
}

.pairings-party-details li {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-details p {
    margin: 0;
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #2d3748;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
}

.footer-bottom p {
    color: #cbd5e0;
    margin: 0;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile Members button styling */
    .nav-link[href="/members/"] {
        margin-left: 0;
        margin-top: 1rem;
        display: inline-block;
        width: auto;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 1rem 4rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-placeholder {
        font-size: 4rem;
    }

    .hero-trophy {
        max-width: 200px;
        max-height: 250px;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Grids */
    .about-grid,
    .format-grid,
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .teams-grid {
        max-width: none;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Schedule */
    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .schedule-date {
        align-self: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    section {
        padding: 3rem 0;
    }

    .about-card,
    .format-card,
    .team-card {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .team-flag {
        font-size: 3.5rem;
    }
    
    .team-logo-img {
        max-width: 45px !important;
        max-height: 45px !important;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0;
        break-inside: avoid;
    }
}

/* Tournament Results Modal Styles */
.tournament-results-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.tournament-modal-content {
    padding: 0;
}

.tournament-modal-content .modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}

.tournament-modal-content .modal-body {
    padding: 0;
}

.results-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.day-selector {
    display: flex;
    gap: 0.5rem;
}

.day-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.day-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.expand-btn {
    padding: 0.75rem 1.5rem;
    background: #4ade80;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.results-container {
    padding: 2rem;
    min-height: 400px;
}

.day-results {
    display: none;
}

.day-results.active {
    display: block;
}

.day-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.day-header h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.day-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    color: #6b7280;
}

.day-info .date {
    font-weight: 600;
}

.day-info .format {
    font-style: italic;
}

.day-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.summary-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-score .team-name {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.team-score .points {
    font-size: 2.5rem;
    font-weight: 800;
}

.summary-divider {
    font-size: 2rem;
    opacity: 0.7;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.match-card.expanded {
    border-color: #667eea;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.3s ease;
}

.match-header:hover {
    background: #f1f5f9;
}

.match-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
}

.match-result {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.match-result.usa-wins {
    background: #dbeafe;
    color: #1d4ed8;
}

.match-result.international-wins {
    background: #dcfce7;
    color: #16a34a;
}

.match-result.halved {
    background: #fef3c7;
    color: #d97706;
}

.expand-icon {
    font-size: 1.2rem;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.match-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.match-details {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.team-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.team-side {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
}

.team-side.usa {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.team-side.international {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.team-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.team-side.usa .team-label {
    color: #1d4ed8;
}

.team-side.international .team-label {
    color: #16a34a;
}

.players {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 1rem;
}

.score {
    font-weight: 800;
    font-size: 1.3rem;
    color: #1f2937;
}

.vs {
    font-weight: 800;
    font-size: 1.5rem;
    color: #6b7280;
    text-align: center;
}

/* Mobile Responsive for Tournament Results */
@media (max-width: 768px) {
    .tournament-results-modal .modal-content {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .results-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .day-selector {
        justify-content: center;
    }
    
    .day-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .summary-score {
        flex-direction: column;
        gap: 1rem;
        font-size: 1.2rem;
    }
    
    .team-matchup {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .vs {
        order: 2;
        margin: 0.5rem 0;
    }
    
    .team-side.usa {
        order: 1;
    }
    
    .team-side.international {
        order: 3;
    }
    
    .match-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .results-container {
        padding: 1rem;
    }
}

/* Historic Data Styles */
.historic-data-modal .modal-content {
    padding: 0;
}

.historic-data-controls {
    padding: 24px;
    border-bottom: 2px solid var(--light-gray);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.data-summary h3 {
    margin: 0 0 16px 0;
    color: var(--text-dark);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.view-options {
    display: flex;
    gap: 12px;
}

.view-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.historic-data-content {
    padding: 24px;
}

/* Match Summary Grid */
.match-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.match-summary-card {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

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

.match-header h4 {
    margin: 0;
    color: var(--text-dark);
}

.match-result {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-result.usa-win {
    background: #e3f2fd;
    color: #1976d2;
}

.match-result.intl-win {
    background: #f3e5f5;
    color: #7b1fa2;
}

.match-result.tie {
    background: #fff3e0;
    color: #f57c00;
}

.players {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.player {
    flex: 1;
    text-align: center;
}

.player-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.player-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.vs {
    font-weight: 700;
    color: var(--text-light);
    padding: 0 8px;
}

.view-details-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: var(--primary-dark);
}

/* Detailed View */
.detailed-matches {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detailed-match {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.detailed-match-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid var(--light-gray);
}

.detailed-match-header h4 {
    margin: 0 0 12px 0;
    color: var(--text-dark);
}

.match-players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.usa-summary, .intl-summary {
    font-size: 0.9rem;
    color: var(--text-light);
}

.scorecard {
    overflow-x: auto;
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.scorecard-table th,
.scorecard-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.scorecard-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.scorecard-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.hole-number {
    font-weight: 600;
    color: var(--text-dark);
}

.hole-result.usa-win {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.hole-result.intl-win {
    background: #f3e5f5;
    color: #7b1fa2;
    font-weight: 600;
}

.hole-result.tie {
    background: #fff3e0;
    color: #f57c00;
    font-weight: 600;
}

/* Important Dates Styles */
.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.date-item:last-child {
    border-bottom: none;
}

.date-label {
    font-weight: 600;
    color: var(--text-dark);
}

.date-value {
    color: var(--primary-color);
    font-weight: 600;
}

/* 2024 Results Overview Styles */
.tournament-overview {
    padding: 0;
}

.tournament-summary {
    margin-bottom: 32px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-value {
    font-weight: 700;
    color: var(--text-dark);
}

.summary-value.winner {
    color: var(--primary-color);
}

.day-selection h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.day-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.day-btn {
    padding: 24px;
    border: 2px solid #ddd;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.day-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.day-btn.available {
    border-color: var(--primary-color);
    background: white;
}

.day-btn.available:hover {
    background: var(--primary-color);
    color: white;
}

.day-btn.available:hover .day-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.day-btn.available:hover .day-status {
    color: white;
}

.day-btn.available:hover .day-title {
    color: white;
}

.day-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.day-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.day-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.day-status {
    font-size: 0.8rem;
    font-weight: 600;
}

.day-btn.available .day-status {
    color: var(--primary-color);
}

/* Matches Overview Grid */
.matches-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.match-overview-card {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.clickable-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 16px;
    margin: -16px -16px 16px -16px;
}

.clickable-header:hover {
    background-color: #f8f9fa;
}

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

.match-title h4 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.match-scores {
    font-size: 0.85rem;
    color: var(--text-light);
}

.score-breakdown {
    font-weight: 500;
}

.match-winner {
    display: flex;
    align-items: center;
}

.winner-flag {
    font-size: 1.5rem;
    display: inline-block;
}

.winner-flag.usa-flag {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.winner-flag.intl-flag {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.winner-flag.tie-flag {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.view-scorecard-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-scorecard-btn:hover {
    background: var(--primary-hover);
}

/* Day 1 Match Card Styles */
.day1-match-card.compact {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.teams-boxes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 0;
    width: 100%;
}

.team-box {
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    padding: 20px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    background: #f8fafc;
}

.team-box.usa-box {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.team-box.intl-box {
    border-color: #10b981;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.team-box .team-flag {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.team-box .player-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.vs-divider {
    font-weight: 800;
    font-size: 1.2rem;
    color: #6b7280;
    padding: 0 8px;
    flex-shrink: 0;
}

.format-boxes {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: space-between;
    width: 100%;
}

.format-box {
    flex: 1;
    min-width: 100px;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    background: white;
}

.format-box .format-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
}

.format-box .format-result {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
}

.format-box.usa-win {
    border-color: #3b82f6;
    background: #dbeafe;
}

.format-box.usa-win .format-result {
    color: #1d4ed8;
}

.format-box.intl-win {
    border-color: #10b981;
    background: #dcfce7;
}

.format-box.intl-win .format-result {
    color: #16a34a;
}

.format-box.tie {
    border-color: #f59e0b;
    background: #fef3c7;
}

.format-box.tie .format-result {
    color: #d97706;
}

.day1-summary .format-breakdown {
    margin-top: 20px;
}

.day1-summary .format-breakdown h4 {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.format-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.format-stat .format-name {
    font-weight: 600;
    color: var(--text-dark);
}

.format-scores {
    display: flex;
    gap: 16px;
}

.usa-score {
    color: #1d4ed8;
    font-weight: 600;
}

.intl-score {
    color: #16a34a;
    font-weight: 600;
}

/* Mobile responsive for Day 1 */
@media (max-width: 600px) {
    .teams-boxes {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .vs-divider {
        order: 2;
        text-align: center;
        padding: 8px 0;
        font-size: 1rem;
    }
    
    .team-box {
        min-width: unset;
        max-width: 100%;
    }
    
    .team-box.usa-box {
        order: 1;
    }
    
    .team-box.intl-box {
        order: 3;
    }
    
    .format-boxes {
        flex-direction: column;
        gap: 12px;
    }
    
    .format-box {
        min-width: unset;
        max-width: 100%;
    }
}

/* Tablet responsive for Day 1 */
@media (max-width: 900px) and (min-width: 601px) {
    .team-box {
        min-width: 160px;
        max-width: 250px;
    }
    
    .teams-boxes {
        gap: 16px;
    }
}

/* News Section Styles */
.news {
    background: #f8fafc;
    padding: 6rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-card .news-link,
.modal-news-card .news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.news-card .news-link:hover,
.modal-news-card .news-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--primary-hover);
}

/* History Section Styles */
.history {
    background: white;
    padding: 6rem 0;
}

.history-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.history-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.history-tournaments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tournament-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tournament-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tournament-card.upcoming {
    cursor: default;
    opacity: 0.7;
}

.tournament-card.upcoming:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: none;
}

.tournament-card.completed {
    cursor: default;
}

.tournament-card.completed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 2024 tournament card should remain clickable */
.tournament-card[onclick] {
    cursor: pointer;
}

.tournament-card[onclick]:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tournament-year {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tournament-info h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.tournament-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.winner {
    font-weight: 700;
    color: #16a34a;
}

.usa-winner {
    color: #1d4ed8;
}

.inaugural-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.score {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.coming-soon {
    font-style: italic;
    color: var(--text-light);
}

.tournament-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.view-results-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.tournament-card:hover .view-results-btn {
    background: var(--primary-hover);
}

/* Mobile responsive for News and History */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .history-tournaments {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tournament-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tournament-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Golf Scorecard Styles */
.golf-scorecard {
    font-family: 'Arial', sans-serif;
}

.scorecard-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

.course-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.course-info p {
    margin: 0;
    color: var(--text-light);
}

.players-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
}

.player-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.player-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.player-info.usa {
    text-align: left;
}

.player-info.international {
    text-align: right;
}

.vs-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
}

.scorecard-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
}

.golf-scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: white;
    border: 2px solid var(--text-dark);
}

.golf-scorecard-table th,
.golf-scorecard-table td {
    padding: 8px 6px;
    text-align: center;
    border: 1px solid var(--text-dark);
    min-width: 35px;
}

.golf-scorecard-table th {
    background: #f1f5f9 !important;
    color: var(--text-dark) !important;
    font-weight: 700;
}

.golf-scorecard-table .total-score {
    color: black !important;
    font-weight: bold;
}

.unplayed-hole {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.hole-numbers {
    border-bottom: 3px solid var(--text-dark);
}

.hole-numbers th {
    font-size: 1rem;
    padding: 10px 6px;
}

.hole-label {
    background: #e2e8f0;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1rem;
}

.hole-number {
    background: #e2e8f0;
    color: var(--text-dark) !important;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    min-width: 40px;
}

.out-total, .in-total, .total {
    background: var(--text-dark);
    color: white !important;
    font-weight: 700;
}

.par-row {
    background: #f8f8f8;
    border-bottom: 2px solid var(--text-dark);
    border-top: 1px solid var(--text-dark);
}

.par-row th {
    background: #f8f8f8;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 6px;
}

.par-label {
    background: #e0e0e0;
    font-weight: 700;
}

.par-cell {
    text-align: center;
}

.par-total {
    background: #d0d0d0;
    font-weight: 700;
}

.player-label {
    text-align: left !important;
    font-weight: 600;
    padding-left: 12px !important;
    min-width: 180px;
}

.score-cell {
    font-weight: 600;
    position: relative;
}

.score-cell.net {
    background: #f8f9fa;
    font-style: italic;
}

.subtotal, .total-score {
    background: #e9ecef;
    font-weight: 700;
}

.total-score {
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
}

.out-total, .in-total, .total {
    background: var(--text-dark);
    font-weight: 700;
}

/* Golf Score Symbols */
.score-symbol {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: 700;
}

.score-symbol.circle {
    border: 2px solid #4caf50;
    border-radius: 50%;
    color: #4caf50;
}

.score-symbol.double-circle {
    border: 3px double #2196f3;
    border-radius: 50%;
    color: #2196f3;
}

.score-symbol.square {
    border: 2px solid #ff9800;
    color: #ff9800;
}

.score-symbol.double-square {
    border: 3px double #f44336;
    color: #f44336;
}

.scorecard-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-symbol {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.legend-symbol.birdie {
    border: 2px solid #4caf50;
    border-radius: 50%;
    color: #4caf50;
}

.legend-symbol.bogey {
    border: 2px solid #ff9800;
    color: #ff9800;
}

.legend-symbol.double-bogey {
    border: 2px double #f44336;
    color: #f44336;
}

.legend-symbol.stroke {
    color: var(--text-dark);
    font-weight: 700;
}

/* Match Status Row Styles */
.match-status-row {
    background: #fff3e0;
    border-top: 2px solid var(--primary-color);
}

.match-status-row .player-label {
    background: #2c3e50;
    color: white;
    font-weight: 700;
}

.status-cell {
    font-weight: 700;
    font-size: 0.9rem;
}

.status-cell.status-up {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-cell.status-down {
    background: #ffebee;
    color: #c62828;
}

.status-cell.status-even {
    background: #f5f5f5;
    color: var(--text-light);
}

.status-subtotal {
    background: #e0e0e0;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-total {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.status-total.status-up {
    background: #2e7d32;
}

.status-total.status-down {
    background: #c62828;
}

.status-total.status-even {
    background: #666;
}

.status-empty {
    background: #f5f5f5;
    border: 1px solid var(--light-gray);
}

/* Responsive adjustments for historic data */
@media (max-width: 768px) {
    .match-summary-grid,
    .matches-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-stats,
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .match-players {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .day-buttons {
        grid-template-columns: 1fr;
    }
    
    .players-info {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    
    .player-info.usa,
    .player-info.international {
        text-align: center;
    }
    
    .vs-divider {
        order: 2;
    }
    
    .scorecard-legend {
        gap: 12px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .historic-data-controls,
    .historic-data-content {
        padding: 16px;
    }
    
    .clickable-header {
        padding: 12px;
        margin: -12px -12px 12px -12px;
    }
    
    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .match-scores {
        font-size: 0.8rem;
    }
    
    .winner-flag {
        font-size: 1.2rem;
    }
} 