/* Ecran Geant - Mode projection */

* { box-sizing: border-box; }

body {
    background: #0f0f23;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header */
.ecran-header {
    background: linear-gradient(135deg, #1a1a3e, #0f0f23);
    border-bottom: 2px solid rgba(82, 183, 136, 0.3);
    padding: 12px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.ecran-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.ecran-clock {
    font-size: 3.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #52b788;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(82, 183, 136, 0.3);
}

.ecran-stats-bar {
    display: flex;
    gap: 40px;
    margin-top: 8px;
    font-size: 1rem;
}

.ecran-stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecran-stats-bar .stat-item .stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #52b788;
}

.ecran-stats-bar .stat-item .stat-lbl {
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Status badges */
.status-badge {
    font-size: 0.9rem;
}

.status-badge.started {
    background: rgba(82, 183, 136, 0.2);
    color: #52b788;
}

/* Panels */
#panels-container {
    position: fixed;
    top: 150px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 30px;
    overflow: hidden;
    z-index: 10;
}

.ecran-panel {
    display: none;
    height: 100%;
    animation: fadeIn 0.8s ease;
}

.ecran-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-title {
    color: rgba(255,255,255,0.7);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.ecran-table {
    color: #e0e0e0;
    font-variant-numeric: tabular-nums;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.ecran-table thead th {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
}

.ecran-table tbody tr {
    background: rgba(255,255,255,0.03);
    transition: background 0.3s;
}

.ecran-table tbody tr:hover {
    background: rgba(82, 183, 136, 0.08);
}

.ecran-table td {
    border: none;
    padding: 10px 12px;
    font-size: 1.3rem;
    vertical-align: middle;
}

.ecran-table .rank-col {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    width: 60px;
}

.ecran-table .rank-1 { color: #ffd700; }
.ecran-table .rank-2 { color: #c0c0c0; }
.ecran-table .rank-3 { color: #cd7f32; }

.ecran-table .laps-col {
    font-size: 2rem;
    font-weight: 800;
    color: #52b788;
    text-align: center;
}

.ecran-table .name-col {
    font-weight: 600;
    font-size: 1.4rem;
}

.ecran-table .bib-badge {
    font-size: 1rem;
    padding: 4px 10px;
}

/* Activity panel */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px 24px;
    border-left: 4px solid #52b788;
    animation: slideIn 0.5s ease;
}

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

.activity-item .activity-name {
    font-size: 1.6rem;
    font-weight: 700;
}

.activity-item .activity-bib {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 4px 12px;
    background: #2d6a4f;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    margin-right: 16px;
}

.activity-item .activity-lap {
    font-size: 2.5rem;
    font-weight: 800;
    color: #52b788;
}

.activity-item .activity-time {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
}

/* Stats panel */
.big-stat {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    height: 100%;
}

.big-stat .big-value {
    font-size: 4rem;
    font-weight: 800;
    color: #52b788;
    line-height: 1;
    text-shadow: 0 0 30px rgba(82, 183, 136, 0.2);
}

.big-stat .big-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

.big-stat .big-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* Panel indicator dots */
.panel-indicators {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.panel-dot.active {
    background: #52b788;
    transform: scale(1.3);
}
