/* Team Pages CSS - Minimal Styling */

.team-header {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* .team-name replaced by base.css h1.page-title */

.team-info-grid {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 0.5rem;
    overflow-x: auto;
}

.info-item {
    display: flex;
    flex-direction: column;
}

/* Desktop: wrapper dissolves so Record/ATS/O/U remain part of the 7-col grid */
.info-row-stats {
    display: contents;
}

.info-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: var(--color-brand-dark);
    font-weight: 600;
    white-space: nowrap;
}

/* Schedule Section */
.schedule-section {
    margin-bottom: 2rem;
}

.schedule-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-brand-dark);
}

/* Shared .schedule-table look lives in base.css; team pages only set their
   own column widths and column-specific alignment. */
.schedule-header,
.schedule-row {
    grid-template-columns: 80px 1fr 200px 80px 80px;
}

/* Column alignment */
.col-location {
    font-weight: 500;
}

.col-opponent {
    font-weight: 600;
    color: inherit;
}

.schedule-row .col-opponent {
    color: var(--color-brand-dark);
}

.col-result {
    font-size: 0.875rem;
}

.col-ats, .col-ou {
    text-align: center;
    font-size: 0.875rem;
}

.ats-win {
    color: #2f855a;
    font-weight: 600;
}

.ats-loss {
    color: var(--color-danger);
    font-weight: 600;
}

.ats-push {
    color: var(--color-text-muted);
}

.ou-over {
    color: var(--color-brand-light);
    font-weight: 600;
}

.ou-under {
    color: #2b6cb0;
    font-weight: 600;
}

.ou-push {
    color: var(--color-text-muted);
}

/* Preview Section — .preview-section + .narrative-* now defined in base.css */

/* Responsive */
@media (max-width: 768px) {
    .content-section {
        padding: 12px 10px;
    }

    .schedule-header,
    .schedule-row {
        grid-template-columns: 28px 1fr 88px 36px 44px;
        gap: 0.3rem;
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
        align-items: center;
    }

    .col-result {
        font-size: 0.75rem;
    }

    .col-ats, .col-ou {
        font-size: 0.72rem;
        text-align: center;
    }

    .team-name {
        font-size: 1.5rem;
    }

    .team-header {
        padding: 0.6rem 0.75rem;
    }

    .team-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem 0.75rem;
    }

    .team-info-grid .info-item:nth-child(1),
    .team-info-grid .info-item:nth-child(2) {
        grid-column: span 1;
    }

    .info-item {
        flex-direction: row;
        align-items: baseline;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .info-label {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .info-value {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    /* Mobile: Record / ATS / O/U sit together on one row spanning both columns */
    .info-row-stats {
        display: flex;
        gap: 0.4rem;
        grid-column: 1 / -1;
    }

    .info-row-stats .info-item {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
    }

    .travel-table {
        table-layout: fixed;
        width: 100%;
    }
    .travel-table th:nth-child(1),
    .travel-table td:nth-child(1) {
        width: 54px;
        padding: 5px 4px;
        white-space: nowrap;
    }
    .travel-table th:nth-child(2),
    .travel-table td:nth-child(2) {
        padding: 5px 4px;
    }
    .travel-table th:nth-child(3),
    .travel-table td:nth-child(3) {
        width: 62px;
        padding: 5px 4px;
        text-align: right;
        white-space: nowrap;
    }
    .travel-table th:nth-child(4),
    .travel-table td:nth-child(4) {
        width: 72px;
        padding: 5px 6px 5px 2px;
        text-align: right;
        white-space: nowrap;
    }
}
