/* static/css/team/team.css */

/* Team container */
.team-container {
    padding: 12px;
}

/* Section headers */
.section-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Cards for content sections */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
}

.card-body {
    padding: 15px;
}

/* Value styling classes */
}

}

.neutral-value {
    color: #007bff;
}

/* Chart containers */
.stats-chart-container {
    height: 300px;
    margin-bottom: 30px;
}

.chart-container {
    height: 300px;
    margin: 20px 0 30px 0;
}

/* Description text */
.metric-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    margin-bottom: 15px;
    font-style: italic;
}

/* Tab navigation */
.tab-navigation {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

.tab-button {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

    font-weight: bold;
}

.tab-button:hover:not(.active) {
    background-color: #e9ecef;
}

.tab-content {
    display: none;
}

}

/* Metric rows for displaying key-value pairs */
.metric-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.metric-label {
    flex: 1;
    font-weight: bold;
}

.metric-value {
    flex: 1;
    text-align: right;
    font-size: 1.1rem;
}

/* Team header styling */
.team-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.team-logo {
    width: var(--logo-lg);  /* 180px - standardized size */
    height: var(--logo-lg);
    margin-right: 20px;
    object-fit: contain;
}

.team-info {
    flex-grow: 1;
}

.team-name {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.team-metadata {
    color: #666;
    font-size: 1.1rem;
}

.team-rankings {
    margin-left: auto;
    text-align: right;
}

.team-rank {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Navigation links */
.nav-links {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-links .nav-link {
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.nav-links .nav-link i {
    margin-right: 5px;
}

*/

@media (max-width: 576px) {
    .nav-links {
        flex-direction: column;
    }

    .nav-links .nav-link {
        margin-right: 0;
        width: 100%;
    }
}

/* Tables */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.stats-table th {
    font-weight: bold;
    background-color: #f8f9fa;
}

.stats-table tr:hover {
    background-color: #f5f5f5;
}

.player-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.player-table th,
.player-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.player-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.player-table tr:hover {
    background-color: #f5f5f5;
}

/* Recruiting-specific styles */
.recruit-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.recruit-table th,
.recruit-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.recruit-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.recruit-table tr:hover {
    background-color: #f5f5f5;
}

.rating-column {
    width: 100px;
}

.star-rating {
    color: #ffc107;
    font-weight: bold;
}

.five-star { color: #28a745; }
.four-star { color: #007bff; }
.three-star { color: #6c757d; }
.two-star { color: #dc3545; }

.year-summary {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.year-summary h3 {
    margin-bottom: 10px;
}

.year-summary .rank {
    font-size: 1.2em;
    font-weight: bold;
}

/* Player component styling */
.player-list {
    list-style-type: none;
    padding: 0;
}

.player-item {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

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

.player-name {
    font-weight: bold;
}

.player-position {
    color: #666;
    margin-left: 5px;
}

.player-stats {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Advanced statistics */
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

    font-weight: bold;
}

.stat-value {
    flex: 1;
    text-align: right;
}

    color: #666;
    font-size: 0.9rem;
    padding-left: 15px;
}

/* =====================================================
   DARK MODE SUPPORT
   ===================================================== */

[data-theme="dark"] .team-container {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .section-header {
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-header {
    background-color: var(--bg-tertiary);
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .card-body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Fix navigation links in dark mode */
[data-theme="dark"] .nav-links .nav-link,
[data-theme="dark"] .team-container .nav-link {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-links .nav-link:hover,
[data-theme="dark"] .team-container .nav-link:hover {
    background-color: var(--cta-primary);
    color: #ffffff;
    border-color: var(--cta-primary);
}

/* Fix social links in dark mode */
[data-theme="dark"] .social-link {
    color: var(--cta-primary);
}

[data-theme="dark"] .social-link:hover {
    color: var(--cta-primary-hover);
}

/* Table dark mode */
[data-theme="dark"] .stats-table th,
[data-theme="dark"] .player-table th,
[data-theme="dark"] .recruit-table th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .stats-table td,
[data-theme="dark"] .player-table td,
[data-theme="dark"] .recruit-table td {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .stats-table tr:hover,
[data-theme="dark"] .player-table tr:hover,
[data-theme="dark"] .recruit-table tr:hover {
    background-color: var(--bg-tertiary);
}

/* Tab navigation dark mode */
[data-theme="dark"] .tab-navigation {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .tab-button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .tab-button:hover:not(.active) {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .tab-button.active {
    background-color: var(--cta-primary);
    color: #ffffff;
}

/* Text colors dark mode */
[data-theme="dark"] .team-metadata,
[data-theme="dark"] .metric-description,
[data-theme="dark"] .player-position,
[data-theme="dark"] .player-stats {
    color: var(--text-secondary);
}

/* Year summary dark mode */
[data-theme="dark"] .year-summary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Player item dark mode */
[data-theme="dark"] .player-item {
    border-bottom-color: var(--border-color);
}
