/* NFL Draft Simulator 2026 - Styles */

:root {
    --primary: #013369;
    --secondary: #d50a0a;
    --accent: #00843d;
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #e0e0e0;
    --success: #00843d;
    --warning: #f4a100;
    --danger: #d50a0a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Filters */
.filters {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-row select {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.btn-primary, .btn-secondary {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #012855;
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: #ccc;
}

/* Stats Bar */
.stats-bar {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Player Grid */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    overflow: visible;
}

.player-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: visible;
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 1000;
}

.player-rank {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.player-header {
    margin-bottom: 1rem;
    overflow: visible;
}

.player-position {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    position: relative;
    cursor: pointer;
}

/* Position colors */
.player-position.qb { background: #4a90d9; color: white; }
.player-position.rb { background: #5cb85c; color: white; }
.player-position.wr { background: #f0ad4e; color: white; }
.player-position.te { background: #9b59b6; color: white; }
.player-position.ot, .player-position.og, .player-position.c { background: #34495e; color: white; }
.player-position.edge { background: #e74c3c; color: white; }
.player-position.dt, .player-position.nt { background: #c0392b; color: white; }
.player-position.lb, .player-position.ilb, .player-position.olb { background: #27ae60; color: white; }
.player-position.cb { background: #3498db; color: white; }
.player-position.s, .player-position.fs, .player-position.ss { background: #2980b9; color: white; }

.player-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.player-name a {
    color: var(--text);
    text-decoration: none;
}

.player-name a:hover {
    color: var(--primary);
}

.player-school {
    color: var(--text-light);
    font-size: 0.9rem;
}

.player-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.player-measurables {
    display: flex;
    gap: 0.75rem;
}

.measurable {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.player-projection {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.round {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.round-1 { background: #ffd700; color: #333; }
.round-2 { background: #c0c0c0; color: #333; }
.round-3 { background: #cd7f32; color: white; }
.round-4, .round-5, .round-6, .round-7 { background: var(--border); color: var(--text); }

.grade {
    font-weight: bold;
    color: var(--primary);
}

.player-strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.tag.strength {
    background: #e8f5e9;
    color: var(--success);
}

.player-comp {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comp-label {
    font-weight: bold;
}

/* Stats Popup Tooltip - triggered on position tag hover */
.stats-popup {
    display: none;
    position: absolute;
    top: -10px;
    left: calc(100% + 10px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 99999;
    white-space: normal;
    text-align: left;
    font-weight: normal;
    pointer-events: none;
}

.stats-popup::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 100%;
    border: 8px solid transparent;
    border-right-color: white;
}

.player-position:hover .stats-popup {
    display: block;
}

.stats-popup-header {
    font-size: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.stats-popup-content {
    font-size: 0.85rem;
}

.stat-row {
    padding: 0.2rem 0;
}

.stat-row .stat-label {
    font-weight: 400;
    color: var(--text);
    margin-right: 0.5rem;
}

.stat-row .stat-value {
    color: var(--text);
    font-weight: 400;
}

.stats-popup-strengths {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

.stats-popup-strengths .stat-label {
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.stats-popup-strengths ul {
    margin: 0;
    padding-left: 1.25rem;
}

.stats-popup-strengths li {
    color: var(--text-light);
    margin-bottom: 0.15rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Player Detail Page */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.player-detail {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.player-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.player-detail-rank {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    background: var(--bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.player-detail-info {
    flex: 1;
}

.player-detail-info h1 {
    margin-bottom: 0.5rem;
}

.player-detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.position-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.position-badge.qb { background: #4a90d9; color: white; }
.position-badge.rb { background: #5cb85c; color: white; }
.position-badge.wr { background: #f0ad4e; color: white; }
.position-badge.te { background: #9b59b6; color: white; }
.position-badge.ot, .position-badge.og, .position-badge.c { background: #34495e; color: white; }
.position-badge.edge { background: #e74c3c; color: white; }
.position-badge.dt, .position-badge.nt { background: #c0392b; color: white; }
.position-badge.lb, .position-badge.ilb, .position-badge.olb { background: #27ae60; color: white; }
.position-badge.cb { background: #3498db; color: white; }
.position-badge.s, .position-badge.fs, .position-badge.ss { background: #2980b9; color: white; }

.school-name, .class-year, .hometown {
    color: var(--text-light);
}

.player-detail-grade {
    text-align: center;
}

.grade-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.grade-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.projection-grid, .measurements-grid, .testing-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.projection-item, .measurement, .test-result, .stat-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.projection-value, .measurement-value, .test-value, .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.projection-label, .measurement-label, .test-label, .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.summary {
    line-height: 1.8;
    color: var(--text);
}

.comparison {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.trait-list {
    list-style: none;
}

.trait-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.trait-list.strengths li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.trait-list.weaknesses li::before {
    content: '!';
    position: absolute;
    left: 0;
    color: var(--warning);
    font-weight: bold;
}

.traits-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trait-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trait-name {
    width: 140px;
    font-size: 0.9rem;
}

.trait-meter {
    flex: 1;
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.trait-value {
    width: 40px;
    text-align: right;
    font-weight: bold;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Team Styles */
.team-filters {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-filters .filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.team-filters select {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

/* Division section */
.division-section {
    margin-bottom: 2rem;
}

.division-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.division-header h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}

.conference-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.conference-badge.afc {
    background: #d50a0a;
    color: white;
}

.conference-badge.nfc {
    background: #013369;
    color: white;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary);
}

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

/* team-card-header styles moved below with team logo styles */

.team-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
}

.team-name:hover {
    color: var(--primary);
}

.team-abbr {
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    background: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.team-strategy {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.team-strategy.bpa {
    background: #e3f2fd;
    color: #1565c0;
}

.team-strategy.needs {
    background: #fff3e0;
    color: #e65100;
}

.team-strategy.balanced {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Need level badges */
.need-level {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.need-level.critical {
    background: #ffebee;
    color: #c62828;
}

.need-level.high {
    background: #fff3e0;
    color: #e65100;
}

.need-level.medium {
    background: #fff8e1;
    color: #f9a825;
}

.need-level.low {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Team needs list */
.team-needs-summary {
    margin-top: 0.75rem;
}

.team-needs-summary h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.needs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.need-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    background: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.need-position {
    font-weight: bold;
}

/* Team detail page */
.team-detail {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.team-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

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

.team-detail-info h1 {
    margin-bottom: 0.5rem;
}

.team-detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.team-division, .team-conference {
    color: var(--text-light);
}

/* Team needs table */
.needs-table {
    width: 100%;
    border-collapse: collapse;
}

.needs-table th,
.needs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.needs-table th {
    background: var(--bg);
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.needs-table tr:hover {
    background: var(--bg);
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Strategy explanation */
.strategy-box {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.strategy-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strategy-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* No needs message */
.no-needs {
    color: var(--text-light);
    font-style: italic;
    padding: 1rem 0;
}

/* Draft picks table */
.picks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.picks-table th,
.picks-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.picks-table th {
    background: var(--bg);
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.picks-table tr:hover {
    background: var(--bg);
}

/* Pick type badges */
.pick-type {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.pick-type.own {
    background: #e8f5e9;
    color: #2e7d32;
}

.pick-type.trade {
    background: #e3f2fd;
    color: #1565c0;
}

.pick-type.comp {
    background: #fff3e0;
    color: #e65100;
}

/* Draft picks summary */
.draft-picks-summary {
    margin-bottom: 1rem;
}

/* Team card badges */
.team-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.picks-count {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    cursor: pointer;
}

/* Picks tooltip container */
.picks-tooltip-container {
    position: relative;
    display: inline-block;
}

.picks-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 0.75rem;
    min-width: 180px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-top: 0.5rem;
}

.picks-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--border);
}

.picks-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: var(--card-bg);
}

.picks-tooltip-container:hover .picks-tooltip {
    opacity: 1;
    visibility: visible;
}

.picks-tooltip-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.picks-tooltip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.picks-tooltip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--bg);
}

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

.pick-round {
    font-weight: 600;
    color: var(--text);
    min-width: 40px;
}

.pick-overall {
    color: var(--text-light);
    min-width: 35px;
}

/* Team Logo Styles */
.team-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.team-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.team-card-title {
    flex: 1;
}

/* Strategy Toggle */
.strategy-toggle-container {
    margin-top: 1rem;
}

.strategy-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.strategy-toggle {
    display: inline-flex;
    background: var(--bg);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.strategy-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
}

.strategy-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.strategy-btn.active {
    background: var(--primary);
    color: white;
}

.strategy-btn[data-strategy="BPA"].active {
    background: #1565c0;
}

.strategy-btn[data-strategy="BALANCED"].active {
    background: #2e7d32;
}

.strategy-btn[data-strategy="NEEDS"].active {
    background: #e65100;
}

/* Compact Strategy Toggle for Team Cards */
.strategy-toggle-compact {
    display: inline-flex;
    background: var(--bg);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.strategy-btn-sm {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
}

.strategy-btn-sm:hover {
    background: rgba(0,0,0,0.08);
    color: var(--text);
}

.strategy-btn-sm.active {
    color: white;
}

.strategy-btn-sm[data-strategy="BPA"].active {
    background: #1565c0;
}

.strategy-btn-sm[data-strategy="BALANCED"].active {
    background: #2e7d32;
}

.strategy-btn-sm[data-strategy="NEEDS"].active {
    background: #e65100;
}

/* Strategy Description */
.strategy-desc h3 {
    margin-bottom: 0.5rem;
}

.strategy-desc p {
    margin: 0;
}

/* Draft Simulator Navigation */
.nav-draft {
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
}

.nav-draft:hover {
    background: #b50909;
}

.nav-admin {
    background: #1a1a2e;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
}

.nav-admin:hover {
    background: #16213e;
}

/* Draft Simulator Styles */
.draft-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.draft-intro {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Team Selection Grid */
.team-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.division-select-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.division-select-section h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.team-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-select-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.team-select-btn:hover {
    border-color: var(--primary);
    background: var(--bg);
    transform: translateX(4px);
}

.team-select-abbr {
    font-weight: bold;
    color: var(--primary);
    min-width: 35px;
}

.team-select-name {
    color: var(--text);
}

/* Draft Board Layout */
.draft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.draft-header h1 {
    margin-bottom: 0.5rem;
}

.draft-status {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.draft-status span {
    padding: 0.25rem 0.75rem;
    background: var(--bg);
    border-radius: 4px;
    font-size: 0.9rem;
}

.on-clock-team {
    font-weight: bold;
    color: var(--primary);
}

.on-clock-team.user-team {
    color: var(--secondary);
    animation: pulse 1s infinite;
}

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

.draft-header-right {
    display: flex;
    gap: 0.75rem;
}

/* Draft Main Layout */
.draft-main {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 1.5rem;
    min-height: 600px;
}

.draft-picks-column,
.draft-players-column,
.draft-team-column {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.draft-picks-column h2,
.draft-players-column h2,
.draft-team-column h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Round Tabs */
.round-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.round-tab {
    padding: 0.35rem 0.6rem;
    border: none;
    background: var(--bg);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.round-tab:hover {
    background: var(--border);
}

.round-tab.active {
    background: var(--primary);
    color: white;
}

/* Draft Picks List */
.draft-picks-list {
    max-height: 500px;
    overflow-y: auto;
}

.draft-pick-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.draft-pick-item.user-pick {
    background: #fff3e0;
    border-left: 3px solid var(--secondary);
}

.draft-pick-item .pick-number {
    font-weight: bold;
    color: var(--primary);
    min-width: 30px;
}

.draft-pick-item .pick-team {
    font-weight: bold;
    min-width: 35px;
}

.draft-pick-item .pick-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.draft-pick-item .pick-school {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* User Pick Panel */
.user-pick-panel {
    background: #fff3e0;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.user-pick-panel h2 {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.pick-instruction {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.player-filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.player-filter-row select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.team-needs-reminder {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Available Players List */
.available-players-list {
    max-height: 450px;
    overflow-y: auto;
}

.available-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.available-player.selectable {
    cursor: pointer;
}

.available-player.selectable:hover {
    background: var(--bg);
}

.player-rank-col {
    font-weight: bold;
    color: var(--primary);
    min-width: 35px;
}

.player-info-col {
    flex: 1;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.player-info-col .player-school {
    font-size: 0.8rem;
    color: var(--text-light);
}

.player-grade-col .grade {
    font-weight: bold;
    color: var(--primary);
}

.draft-btn-col .btn-draft {
    padding: 0.35rem 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.draft-btn-col .btn-draft:hover {
    background: #012855;
}

/* My Team Column */
.my-team-picks {
    margin-bottom: 1.5rem;
}

.my-team-pick {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.my-team-pick .pick-round {
    font-weight: bold;
    color: var(--text-light);
    font-size: 0.8rem;
}

.my-team-pick .pick-player-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.my-team-pick .player-name {
    font-weight: bold;
}

.my-team-pick .player-school {
    font-size: 0.8rem;
    color: var(--text-light);
}

.my-team-pick .pick-grade {
    font-weight: bold;
    color: var(--primary);
}

.my-team-needs h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Draft Complete Screen */
#draft-complete {
    text-align: center;
}

#draft-complete h1 {
    margin-bottom: 2rem;
}

.draft-class-summary {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

.draft-class-pick {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.draft-class-pick .pick-round {
    font-size: 0.85rem;
    color: var(--text-light);
    min-width: 120px;
}

.draft-class-pick .pick-player-detail {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.draft-class-pick .pick-grade {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary);
}

.draft-grade {
    margin-top: 2rem;
}

.draft-grade h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Draft Order Management Page */
.draft-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.draft-order-header h1 {
    margin-bottom: 0.5rem;
}

.draft-order-intro {
    color: var(--text-light);
    margin: 0;
}

.draft-order-actions {
    display: flex;
    gap: 0.75rem;
}

.draft-order-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.round-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.round-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.round-btn:hover {
    border-color: var(--primary);
}

.round-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg);
    padding: 0.25rem;
    border-radius: 6px;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.status-message.info {
    background: #e3f2fd;
    color: #1565c0;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
}

.draft-order-list {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.draft-order-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    box-shadow: none;
}

.draft-order-list.grid-view .draft-order-item {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: none;
}

.draft-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    cursor: grab;
}

.draft-order-item:hover {
    background: var(--bg);
}

.draft-order-item.traded {
    background: #e3f2fd;
}

.draft-order-item.compensatory {
    background: #fff8e1;
}

.draft-order-item.dragging {
    opacity: 0.5;
    background: var(--border);
}

.draft-order-item.drag-over {
    border-top: 3px solid var(--primary);
}

.pick-drag-handle {
    color: var(--text-light);
    cursor: grab;
    padding: 0.25rem;
}

.drag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.pick-number-col {
    min-width: 80px;
}

.pick-overall {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.pick-round-info {
    font-size: 0.75rem;
    color: var(--text-light);
}

.pick-team-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.pick-team-col:hover {
    background: rgba(0,0,0,0.05);
}

.pick-team-abbr {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary);
    min-width: 40px;
}

.pick-team-name {
    color: var(--text);
}

.pick-traded-from {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.pick-comp-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    background: #fff3e0;
    color: #e65100;
    border-radius: 3px;
}

.pick-actions {
    display: flex;
    gap: 0.5rem;
}

.pick-edit-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.pick-edit-btn:hover {
    background: var(--primary);
    color: white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.modal-body > p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.team-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.team-modal-division {
    background: var(--bg);
    border-radius: 8px;
    padding: 0.75rem;
}

.team-modal-division h4 {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.team-modal-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border: 2px solid transparent;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.team-modal-btn:hover {
    border-color: var(--primary);
}

.team-modal-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.team-modal-btn .team-abbr {
    font-weight: bold;
    min-width: 35px;
}

.team-modal-btn .team-name {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .player-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-row select {
        width: 100%;
    }

    .player-detail-header {
        flex-direction: column;
    }

    .projection-grid, .measurements-grid, .testing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-detail-header {
        flex-direction: column;
    }

    .team-filters .filter-row {
        flex-direction: column;
    }

    .team-filters select {
        width: 100%;
    }

    .team-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .draft-order-header {
        flex-direction: column;
        gap: 1rem;
    }

    .draft-order-actions {
        width: 100%;
    }

    .draft-order-actions button {
        flex: 1;
    }
}

/* === News Section === */

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.news-author {
    font-weight: 600;
}

.news-date {
    color: #9ca3af;
}

.news-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.news-title a {
    color: #1e293b;
    text-decoration: none;
}

.news-title a:hover {
    color: #3b82f6;
}

.news-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-tags .tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.read-more {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    color: #2563eb;
}

/* Article Detail Page */
.article-detail {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e293b;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #6b7280;
}

.article-author {
    font-weight: 600;
}

.article-date {
    color: #9ca3af;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-tags .tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.375rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.article-image {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1e293b;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.article-content a:hover {
    color: #2563eb;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.back-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: #2563eb;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state p {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-detail {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }
}
