:root {
    --yankees-navy: #003087;
    --yankees-navy-dark: #001d52;
    --yankees-white: #ffffff;
    --yankees-gray: #c4ced4;
    --win-green: #198754;
    --loss-red: #dc3545;
    --bg-primary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
}

[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #2a2a4a;
    --yankees-white: #e0e0e0;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 30px,
        rgba(0, 48, 135, 0.03) 30px,
        rgba(0, 48, 135, 0.03) 31px
    );
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] body {
    background-image: none;
}

main {
    flex: 1;
}

/* Pinstripe backgrounds */
.pinstripe-bg {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 18px,
        rgba(0, 48, 135, 0.04) 18px,
        rgba(0, 48, 135, 0.04) 19px
    );
}

[data-theme="dark"] .pinstripe-bg {
    background-image: none;
}

.pinstripe-hero {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 24px,
        rgba(255, 255, 255, 0.06) 24px,
        rgba(255, 255, 255, 0.06) 25px
    );
}

/* Navbar */
.yankees-nav {
    background-color: var(--yankees-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--yankees-white);
}

.yankees-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.navbar-logo {
    height: 32px;
    width: 32px;
    filter: brightness(0) invert(1);
}

/* Footer */
.yankees-footer {
    background-color: var(--yankees-navy);
    color: var(--yankees-white);
    border-top: 3px solid var(--yankees-white);
}

.yankees-footer .text-muted {
    color: var(--yankees-gray) !important;
}

.footer-logo {
    height: 36px;
    width: 36px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--yankees-navy) 0%, var(--yankees-navy-dark) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-logo {
    height: 100px;
    width: 100px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background-color: var(--yankees-white);
    margin: 0.75rem auto 1rem;
    opacity: 0.6;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-title a {
    color: var(--yankees-navy);
    text-decoration: none;
}

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

[data-theme="dark"] .card-title a {
    color: #7eb8ff;
}

/* Blog post cards */
.post-card .card-body {
    border-left: 4px solid var(--yankees-navy);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.category-badge {
    background-color: var(--yankees-navy);
    color: white;
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Score cards */
.score-card {
    border: 2px solid var(--yankees-navy) !important;
    border-radius: 8px;
}

.score-card .card-header {
    background-color: var(--yankees-navy);
    color: white;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.linescore-table {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
}

.linescore-table th,
.linescore-table td {
    text-align: center;
    padding: 0.3rem 0.5rem;
    min-width: 28px;
}

.linescore-table .team-name {
    text-align: left;
    font-weight: 600;
    min-width: 50px;
}

.linescore-table .rhe {
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .linescore-table .rhe {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Win/Loss badges */
.badge-win {
    background-color: var(--win-green);
    color: white;
}

.badge-loss {
    background-color: var(--loss-red);
    color: white;
}

.badge-live {
    background-color: #ffc107;
    color: #000;
    animation: pulse 1.5s infinite;
}

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

/* Standings table */
.standings-table {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
}

.standings-table .yankees-row {
    background-color: rgba(0, 48, 135, 0.08);
    font-weight: 700;
}

[data-theme="dark"] .standings-table .yankees-row {
    background-color: rgba(0, 48, 135, 0.25);
}

/* Schedule */
.schedule-game {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-game:last-child {
    border-bottom: none;
}

.schedule-game.today {
    background-color: rgba(0, 48, 135, 0.06);
    border-left: 3px solid var(--yankees-navy);
    padding-left: 0.75rem;
}

/* Section headers */
.section-header {
    color: var(--yankees-navy);
    font-weight: 700;
    border-bottom: 3px solid var(--yankees-navy);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

[data-theme="dark"] .section-header {
    color: #7eb8ff;
    border-bottom-color: #7eb8ff;
}

/* Buttons */
.btn-yankees {
    background-color: var(--yankees-navy);
    color: white;
    border: none;
}

.btn-yankees:hover {
    background-color: var(--yankees-navy-dark);
    color: white;
}

.btn-outline-yankees {
    border: 2px solid var(--yankees-navy);
    color: var(--yankees-navy);
    background: transparent;
}

.btn-outline-yankees:hover {
    background-color: var(--yankees-navy);
    color: white;
}

[data-theme="dark"] .btn-outline-yankees {
    border-color: #7eb8ff;
    color: #7eb8ff;
}

[data-theme="dark"] .btn-outline-yankees:hover {
    background-color: #7eb8ff;
    color: #1a1a2e;
}

/* Auth forms */
.auth-form {
    max-width: 450px;
    margin: 2rem auto;
}

.auth-form .card {
    border-top: 4px solid var(--yankees-navy);
}

/* Category filter pills */
.category-pills .nav-link {
    color: var(--yankees-navy);
    border: 1px solid var(--yankees-navy);
    margin: 0 0.25rem 0.5rem;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
}

.category-pills .nav-link.active {
    background-color: var(--yankees-navy);
    color: white;
}

[data-theme="dark"] .category-pills .nav-link {
    color: #7eb8ff;
    border-color: #7eb8ff;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--yankees-gray);
}

/* Month tabs for schedule */
.month-tabs .nav-link {
    color: var(--yankees-navy);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.month-tabs .nav-link.active {
    background-color: var(--yankees-navy);
    color: white;
    border-color: var(--yankees-navy);
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--yankees-navy);
    border-color: var(--yankees-navy);
}

.page-link {
    color: var(--yankees-navy);
}

/* Dark mode table overrides */
[data-theme="dark"] .table {
    color: var(--text-primary);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dark mode form controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #2a2a4a;
    border-color: #3a3a5a;
    color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder {
    color: #666;
}

/* Dark mode dropdown */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dark mode progress bars */
[data-theme="dark"] .progress {
    background-color: #2a2a4a;
}

/* Dark mode breadcrumb */
[data-theme="dark"] .breadcrumb-item a {
    color: #7eb8ff !important;
}

/* Dark mode alert */
[data-theme="dark"] .alert {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Score animation */
.score-flash {
    animation: scoreFlash 0.5s ease;
}

@keyframes scoreFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #ffc107; }
    100% { transform: scale(1); }
}

/* Theme toggle button */
#theme-toggle {
    border: none;
    background: none;
    cursor: pointer;
}

