/* Base styles */
body {
    background: linear-gradient(135deg, #e3f0ff 0%, #f8f9fa 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 56px;
    min-height: 100vh;
}

/* Team header styling */
.team-header {
    background: linear-gradient(135deg, #0b4da2 0%, #1a75ff 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-logo-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.manager-info {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Award badges */
.awards-showcase {
    display: flex;
    flex-wrap: wrap; /* allow multiple rows when there are many awards */
    gap: 0.5rem;
    row-gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
    /* allow horizontal scroll on very small screens to avoid squishing badges */
    overflow: visible;
}

.award {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    flex: 0 0 auto; /* prevent awards from stretching — keep their natural size */
}

.award.world-series-champion {
    /* Make the World Series badge stand out as the ultimate achievement */
    background: linear-gradient(90deg, #ffd86b 0%, #ffc93c 40%, #ffb400 60%, #ffd700 100%);
    color: #3b2600; /* dark warm text for contrast on gold */
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 22px;
    border: 2px solid rgba(255, 215, 0, 0.95);
    box-shadow: 0 8px 28px rgba(255, 193, 7, 0.18), 0 2px 6px rgba(0,0,0,0.12) inset;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.award.world-series-champion::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: rgba(255, 215, 0, 0.98);
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.award.championship {
    /* Prominent gold treatment for Regular Season Champion to match World Series badge */
    background: linear-gradient(90deg, #fa7122 0%, #f5624e 35%, #ff4423 65%, #f55d16 100%);
    color: #3b2600;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 22px;
    border: 2px solid rgba(68, 13, 13, 0.95);
    box-shadow: 0 8px 28px rgba(255, 193, 7, 0.14), 0 2px 6px rgba(0,0,0,0.08) inset;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.award.championship::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: rgba(167, 23, 23, 0.98);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.award.runner-up {
    background-color: #8f8f8f;
    color: white;
}

.award.achievement {
    background-color: #cd960d;
    color: white;
}

/* Season stats */
.season-quick-stats {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.current-record {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Roster section */
.roster-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.roster-header h2 {
    margin: 0;
    color: #0b4da2;
    font-weight: 700;
}

/* Player cards grid */
.player-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.player-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.player-card-header {
    padding: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-badge {
    background: #0b4da2;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.status-ACTIVE { background: #28a745; color: white; }
.status-RESERVE { background: #ffc107; color: #000; }
.status-INJURED_RESERVE { background: #dc3545; color: white; }
.status-MINORS { background: #6c757d; color: white; }

.player-card-body {
    padding: 0.8rem;
}

.player-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.player-team {
    font-size: 0.9rem;
    color: #666;
}

/* Season history card */
.season-history {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.season-history .card-header {
    background: #0b4da2;
    color: white;
    padding: 1rem;
}

.season-history .card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.season-timeline {
    padding: 1rem 0;
}

.season-entry {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.season-entry:last-child {
    border-bottom: none;
}

.season-year {
    font-weight: 600;
    width: 80px;
    color: #0b4da2;
}

.season-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.achievements {
    display: flex;
    gap: 0.3rem;
}

.achievement-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.achievement-dot.championship {
    /* Red dot for Regular Season Champion (matches .award.championship) */
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #ffd9d9 0%, #f07b7b 35%, #a31010 70%);
    border: 1px solid rgba(163,16,16,0.95);
    box-shadow: 0 2px 6px rgba(163,16,16,0.20), 0 1px 2px rgba(0,0,0,0.08) inset;
    transform: translateY(0);
}
.achievement-dot.runner-up { background: #8f8f8f; }
.achievement-dot.achievement { background: #cd960d; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-header {
        text-align: center;
        padding: 1.5rem 0;
    }

    .team-logo-large {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .team-name {
        font-size: 2rem;
    }

    .awards-showcase {
        justify-content: center;
    }

    .player-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Navigation */
.navbar {
    box-shadow: 0 4px 24px rgba(0, 123, 255, 0.08);
   
}

/* Button group styling */
.btn-group .btn-outline-primary {
    border-color: #0b4da2;
    color: #0b4da2;
}

.btn-group .btn-outline-primary:hover,
.btn-group .btn-outline-primary.active {
    background-color: #0b4da2;
    color: white;
}

.btn-group .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(11, 77, 162, 0.25);
}
