/* Recruit Page Styles - Streamlined recruiting interface */

/* Season Fallback Notice */
.season-fallback-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-fallback-notice i {
    color: #856404;
}

/* Hero Stats Section */
.recruit-hero-section {
    margin-bottom: 2rem;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hero-stat-card {
    background: var(--card-background, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    background: var(--team-primary-color, #007bff);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary, #212529);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    margin-top: 0.25rem;
}

/* Star Distribution Styling */
.star-breakdown .star-counts {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.star-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.star-icon {
    font-size: 1.1rem;
}

.five-star { color: #ffd700; }
.four-star { color: #ffb347; }
.three-star { color: #dda0dd; }
.two-star { color: #87ceeb; }
.one-star { color: #d3d3d3; }

/* Top Recruits Section */
.top-recruits-section {
    margin-bottom: 2rem;
}

.recruits-table-wrapper {
    background: var(--card-background, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.recruits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.recruits-table th {
    background: var(--team-primary-color, #007bff);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recruits-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light, #f8f9fa);
    vertical-align: middle;
}

.recruits-table tbody tr:hover {
    background: var(--hover-bg, #f8f9fa);
}

.recruits-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Cell Styling */
.rank-cell {
    font-weight: 600;
    color: var(--team-primary-color, #007bff);
    text-align: center;
    width: 60px;
}

.name-cell {
    font-weight: 600;
    color: var(--text-primary, #212529);
}

.position-cell {
    font-weight: 500;
    color: var(--team-primary-color, #007bff);
    text-align: center;
    width: 80px;
}

.hometown-cell {
    color: var(--text-secondary, #6c757d);
    font-size: 0.85rem;
}

.rating-cell {
    font-weight: 600;
    text-align: center;
    width: 80px;
}

.stars-cell {
    text-align: center;
    width: 100px;
}

.star-rating {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Historical Trend Section */
.historical-trend-section {
    margin-bottom: 2rem;
}

.trend-chart-container {
    background: var(--card-background, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    height: 300px;
}

.historical-summary {
    margin-top: 1.5rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.year-summary-card {
    background: var(--card-background, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.year-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--team-primary-color, #007bff);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--team-primary-color, #007bff);
}

.year-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.year-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-stat .stat-label {
    color: var(--text-secondary, #6c757d);
    font-size: 0.85rem;
}

.year-stat .stat-value {
    font-weight: 600;
    color: var(--text-primary, #212529);
}

/* Full Class Section */
.full-class-section {
    margin-bottom: 2rem;
}

.full-class-toggle {
    margin: 1rem 0;
    text-align: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--team-primary-color, #007bff);
    color: var(--team-primary-color, #007bff);
}

.btn-outline:hover {
    background: var(--team-primary-color, #007bff);
    color: white;
}

.full-class-table {
    margin-top: 1rem;
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--team-primary-color, #007bff);
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
    color: var(--text-primary, #212529);
    font-weight: 600;
}

.section-heading h2 {
    font-size: 1.5rem;
}

.section-heading h3 {
    font-size: 1.25rem;
}

.section-heading i {
    color: var(--team-primary-color, #007bff);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hero-stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .recruits-table {
        font-size: 0.8rem;
    }
    
    .recruits-table th,
    .recruits-table td {
        padding: 0.5rem;
    }
    
    /* Hide less important columns on mobile */
    .hometown-cell,
    .recruits-table th:nth-child(4) {
        display: none;
    }
    
    .trend-chart-container {
        height: 250px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Dark Mode Support */
[data-theme="dark"] {
    --card-background: #2d3748;
    --border-color: #4a5568;
    --border-light: #4a5568;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --hover-bg: #4a5568;
}

[data-theme="dark"] .hero-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .recruits-table tbody tr:hover {
    background: var(--hover-bg);
}

/* Print Styles */
@media print {
    .full-class-toggle {
        display: none;
    }
    
    .full-class-table {
        display: block !important;
    }
    
    .trend-chart-container {
        height: 200px;
    }
    
    .hero-stat-card {
        break-inside: avoid;
    }
}
