* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1B4D3E;
    --accent-color: #D62828;
    --text-light: #ffffff;
    --card-bg: #ffffff;
    --gradient: linear-gradient(135deg, #1B4D3E 0%, #133329 100%);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --card-border: 1px solid #e0e0e0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--gradient);
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(27, 77, 62, 0.9), rgba(27, 77, 62, 0.9)),
        url('images/background.jpg') center/cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
}

/* Baseball Card Styles */
.card-container {
    perspective: 1000px;
    margin-bottom: 2rem;
}

.baseball-card {
    width: 300px;
    height: 420px;
    margin: 0 auto;
    border-radius: 15px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    animation: floatingCard 3s ease-in-out infinite;
    overflow: hidden;
}

.baseball-card:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Scores Container Styles */
.scores-container {
    max-width: 800px;
    margin: 7rem auto 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.view-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.view-button {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-button:hover {
    background: var(--primary-color);
    color: white;
}

.view-button.active {
    background: var(--primary-color);
    color: white;
}

/* Score Board Styles */
.score-board {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: var(--card-border);
    box-shadow: var(--card-shadow);
}

.score-board table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 1.5rem;
    table-layout: fixed;
}

.score-board tr {
    transition: transform 0.2s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.score-board tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.score-board td, 
.score-board th {
    padding: 1rem;
    border: none;
    text-align: left;
}

/* Region Selector Styles */
.region-selector {
    margin: 2rem 0;
}

#regionSelect {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    border: var(--card-border);
    border-radius: 10px;
    background: var(--card-bg);
    cursor: pointer;
    outline: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

#regionSelect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Players View Specific Styles */
#playersView table {
    margin-top: 0;
    width: 100%;
}

#playersView th:nth-child(1),
#playersView td:nth-child(1) {
    width: 15%;
    text-align: center;
}

#playersView th:nth-child(2),
#playersView td:nth-child(2) {
    width: 35%;
}

#playersView th:nth-child(3),
#playersView td:nth-child(3) {
    width: 25%;
    text-align: center;
}

#playersView th:nth-child(4),
#playersView td:nth-child(4) {
    width: 25%;
    text-align: right;
}

.region-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--primary-color);
    color: white;
    opacity: 0.8;
    text-transform: capitalize;
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--card-shadow);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(214, 40, 40, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 2rem;
}

/* Animations */
@keyframes floatingCard {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .baseball-card {
        width: 250px;
        height: 350px;
    }

    .scores-container {
        margin: 5rem 1rem 2rem;
        padding: 1rem;
    }

    .score-board {
        padding: 1rem;
    }

    .score-board td, 
    .score-board th {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .region-tag {
        padding: 0.1rem 0.5rem;
        font-size: 0.75rem;
    }

    .belt-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .belt-holder {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

/* Belt Holder Styles */
.belt-holder {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.belt-holder h2 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.belt-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.belt-icon {
    font-size: 2.5rem;
}

.belt-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.belt-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.current-holder {
    background: rgba(255, 215, 0, 0.1) !important;
    border-left: 4px solid #FFD700;
}

/* Regional View Table Styles */
.score-board table th:nth-child(1),
.score-board table td:nth-child(1) {
    width: 20%;
    text-align: center;
}

.score-board table th:nth-child(2),
.score-board table td:nth-child(2) {
    width: 50%;
    text-align: left;
}

.score-board table th:nth-child(3),
.score-board table td:nth-child(3) {
    width: 30%;
    text-align: right;
}

.score-board table td {
    font-family: 'Roboto Mono', monospace;
}

.score-board table th {
    color: var(--primary-color);
    font-weight: 600;
}

.score-board h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
/* Rules Page Styles */
.rules-container {
    max-width: 800px;
    margin: 7rem auto 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.rules-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.rule-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: var(--card-border);
}

.rule-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.rule-section ul, 
.rule-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.rule-section li {
    margin-bottom: 0.5rem;
}

.gameplay-steps {
    display: grid;
    gap: 1.5rem;
}

.step {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-rankings ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-rankings li {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .rules-container {
        margin: 5rem 1rem 2rem;
        padding: 1rem;
    }

    .rule-section {
        padding: 1.5rem;
    }

    .card-rankings ol {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
} 