/* TAWF Draft Board - Complete Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #c9c9c9;
    font-size: 18px;
    line-height: 1.6;
}

/* ===== ADMIN STYLES ===== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, #000000 0%, #333333 50%, #666666 100%);
    color: #FFD700;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid #C0C0C0;
}

header h1 {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    color: #FFD700;
}

.admin-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.audience-link, .export-btn, .reset-btn, .lock-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    color: #FFD700;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #C0C0C0;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.audience-link:hover, .export-btn:hover, .reset-btn:hover, .lock-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.reset-btn {
    border-color: rgba(231, 76, 60, 0.5);
}

.reset-btn:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* Team Logo Styles */
.team-logo {
    height: 60px;
    width: auto;
    margin-right: 15px;
    object-fit: contain;
}

.team-logo-large {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.team-logo-medium {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.team-logo-small {
    height: 24px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

.admin-team-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.team-logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.team-header-small {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.admin-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.admin-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.header-title {
    text-align: center;
}

/* TAWF Logo Styles */
.tawf-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-right: 20px;
}

.title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.title-with-logo h1 {
    margin: 0;
}

.lock-btn {
    background: rgba(46, 204, 113, 0.3);
    border-color: rgba(46, 204, 113, 0.5);
}

.lock-btn:hover {
    background: rgba(46, 204, 113, 0.4);
}

/* Phase Sections */
.phase-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(51, 51, 51, 0.9) 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    border: 2px solid #C0C0C0;
    margin-bottom: 20px;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #C0C0C0;
}

.phase-header h2 {
    font-size: 28px;
    color: #FFD700;
}

/* Setup Phase Styles */
.setup-content {
    padding: 20px;
}

.add-athlete-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.8) 0%, rgba(102, 102, 102, 0.8) 100%);
    border-radius: 8px;
    border: 1px solid #C0C0C0;
}

.add-athlete-section h3 {
    margin-bottom: 15px;
    color: #FFD700;
    font-size: 24px;
}

.add-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.add-form input, .add-form select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 2px solid #C0C0C0;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #C0C0C0;
}

.add-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    border: 1px solid #C0C0C0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.add-form button:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.roster-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 24px;
}

.roster-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.roster-filters select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.roster-table-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.roster-table th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 18px;
    position: sticky;
    top: 0;
}

.roster-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 16px;
}

.roster-table tr:hover {
    background: #f8f9fa;
}

.eligibility-montreal {
    color: #2196f3;
    font-weight: bold;
}

.eligibility-toronto {
    color: #f44336;
    font-weight: bold;
}

.eligibility-both {
    color: #ff9800;
    font-weight: bold;
}

.actions {
    display: flex;
    gap: 8px;
}

.edit-btn, .delete-btn, .undo-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.edit-btn {
    background: #f39c12;
    color: white;
}

.edit-btn:hover {
    background: #e67e22;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.undo-btn {
    background: #95a5a6;
    color: white;
}

.undo-btn:hover {
    background: #7f8c8d;
}

/* Draft Phase Styles */
.draft-content {
    padding: 20px;
}

.next-up-banner {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.team-needs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.team-summary {
    padding: 20px;
    border-radius: 8px;
    background: white;
    border: 2px solid #ecf0f1;
}

.team-summary.montreal {
    border-color: #2196f3;
}

.team-summary.toronto {
    border-color: #f44336;
}

.team-summary h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.team-summary.montreal h3 {
    color: #2196f3;
}

.team-summary.toronto h3 {
    color: #f44336;
}

.needs-grid {
    display: grid;
    gap: 10px;
}

.need-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
}

.need-item span:first-child {
    width: 60px;
}

.need-item span:last-child {
    width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.team-summary.montreal .progress-fill {
    background: #2196f3;
}

.team-summary.toronto .progress-fill {
    background: #f44336;
}

.progress-fill.full {
    background: #27ae60 !important;
}

.total-count {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ecf0f1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.picks-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.picks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.picks-header h3 {
    font-size: 24px;
    color: #2c3e50;
}

.picks-table-container {
    max-height: 600px;
    overflow-y: auto;
}

.picks-table {
    width: 100%;
    border-collapse: collapse;
}

.picks-table th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 18px;
    position: sticky;
    top: 0;
}

.picks-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 16px;
}

.pick-row.montreal {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3f8ff 100%);
}

.pick-row.toronto {
    background: linear-gradient(135deg, #ffebee 0%, #fff3f3 100%);
}

.pick-number {
    font-weight: bold;
    font-size: 18px;
}

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

.pick-row.montreal .team-name {
    color: #1976d2;
}

.pick-row.toronto .team-name {
    color: #d32f2f;
}

.picks-table select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    width: 100%;
}

/* Highlight next pick */
.pick-row.next-pick {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border-left: 4px solid #f39c12;
}

/* ===== AUDIENCE STYLES ===== */

.audience-body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
    color: #C0C0C0;
    font-size: 20px;
}

.audience-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.audience-header {
    background: linear-gradient(135deg, #000000 0%, #333333 50%, #666666 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid #C0C0C0;
}

.header-content {
    padding: 20px;
}

.team-counters {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.team-counter {
    text-align: center;
}

.team-counter.montreal {
    text-align: left;
}

.team-counter.toronto {
    text-align: right;
}

.team-counter h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.team-counter.montreal h2 {
    color: #2196f3;
}

.team-counter.toronto h2 {
    color: #f44336;
}

.counter-grid {
    display: flex;
    gap: 15px;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.team-counter.montreal .counter-grid {
    justify-content: flex-start;
}

.team-counter.toronto .counter-grid {
    justify-content: flex-end;
}

.total-counter {
    font-size: 24px;
    font-weight: bold;
    color: #C0C0C0;
}

.draft-title {
    text-align: center;
}

.draft-title h1 {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.phase-indicator {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
}

.phase-indicator.setup {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    border: 1px solid #C0C0C0;
}

.phase-indicator.draft {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000000;
    border: 1px solid #FFD700;
}

.pick-ticker {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(51, 51, 51, 0.8) 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #C0C0C0;
}

.ticker-header {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #FFD700;
}

.ticker-content {
    max-height: 150px;
    overflow-y: auto;
}

.ticker-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid;
}

.ticker-item.montreal {
    border-left-color: #2196f3;
}

.ticker-item.toronto {
    border-left-color: #f44336;
}

.ticker-item.new-pick {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ticker-message {
    text-align: center;
    font-style: italic;
    color: #bdc3c7;
    padding: 20px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.weight-column {
    background: white;
    color: #2c3e50;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.column-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.column-header h2 {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.available-section, .drafted-section {
    padding: 20px;
}

.available-section h3, .drafted-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.athlete-list, .drafted-list {
    min-height: 200px;
}

.athlete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #ecf0f1;
}

.athlete-item.available {
    border-left-color: #95a5a6;
}

.athlete-name {
    font-weight: bold;
    font-size: 18px;
}

.eligibility-tag {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
}

.eligibility-tag.montreal {
    background: #e3f2fd;
    color: #1976d2;
}

.eligibility-tag.toronto {
    background: #ffebee;
    color: #d32f2f;
}

.eligibility-tag.both {
    background: #fff3e0;
    color: #f57c00;
}

.drafted-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 4px solid;
}

.drafted-item.montreal {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3f8ff 100%);
    border-left-color: #2196f3;
}

.drafted-item.toronto {
    background: linear-gradient(135deg, #ffebee 0%, #fff3f3 100%);
    border-left-color: #f44336;
}

.drafted-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.team-dot.montreal {
    background: #2196f3;
}

.team-dot.toronto {
    background: #f44336;
}

.team-name {
    font-weight: bold;
    font-size: 16px;
}

.drafted-item.montreal .team-name {
    color: #1976d2;
}

.drafted-item.toronto .team-name {
    color: #d32f2f;
}

.pick-number {
    font-size: 14px;
    color: #666;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.no-athletes, .no-picks {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-counters {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .team-counter.montreal,
    .team-counter.toronto {
        text-align: center;
    }
    
    .counter-grid {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .draft-title h1 {
        font-size: 36px;
    }
    
    .team-counter h2 {
        font-size: 24px;
    }
    
    .counter-grid {
        font-size: 18px;
    }
    
    .add-form {
        flex-direction: column;
    }
    
    .team-needs {
        grid-template-columns: 1fr;
    }
    
    .admin-nav {
        flex-direction: column;
        align-items: center;
    }
}

/* Team separation in drafted sections */
.drafted-teams {
    display: flex;
    gap: 10px;
    height: 100%;
}

.team-drafted {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-drafted h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
}

.team-drafted.montreal h4 {
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

.team-drafted.toronto h4 {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
}

/* Auto-scrolling ticker updates */
.ticker-content {
    height: 60px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.ticker-scroll {
    display: inline-block;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
    line-height: 60px;
    font-size: 18px;
    font-weight: 500;
    color: #FFD700;
    will-change: transform;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}