/* ========================================
   BASKET TRAINING - DESIGN SYSTEM
======================================== */

:root {

    /* Mendoza Borravino */
    --primary: #710000;
    --primary-dark: #540000;
    --primary-light: #8f1a1a;

    /* Naranja pelota de básquet */
    --secondary: #EE6730;
    --secondary-dark: #d95a28;
    --secondary-light: #f38a5d;

    /* Celeste CAB */
    --accent: #43B5E7;
    --accent-dark: #2d9dcc;
    --accent-light: #6fc9ee;

    /* Superficies */
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-alt: #eef2f5;

    /* Texto */
    --text: #111827;
    --text-muted: #6b7280;

    /* Bordes */
    --border: #dbe2ea;

    /* Estados */
    --success: #15803d;
    --warning: #d97706;
    --danger: #dc2626;
    --info: var(--accent);

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
    --shadow-md: 0 6px 18px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.12);

    /* Radios */
    --radius: 18px;

}

/* ========================================
   RESET
======================================== */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {

    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

button {

    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;

}

button:hover {

    transform: translateY(-2px);

}

/* =========================
   RESET
========================= */

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

/* =========================
   BASE
========================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #111;
    color: #fff;
    min-height: 100vh;
}

/* =========================
   PANTALLAS
========================= */

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

/* =========================
   CONTENEDORES
========================= */

.container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    padding: 30px;
}

/* =========================
   HOME
========================= */

#exerciseTitle {
    color: #ccc;
    margin-bottom: 40px;
}
/* =========================
   CUENTA REGRESIVA
========================= */

#countdownScreen {
    justify-content: center;
    align-items: center;
}

#countdownNumber {
    font-size: 10rem;
    font-weight: bold;
}

/* =========================
   EXAMEN
========================= */

#examScreen {
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.exam-layout {
    width: 100%;
    max-width: 1400px;

    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
}

/* =========================
   VIDEO
========================= */

.video-container {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#gameVideo {
    width: 100%;
    display: block;
    background: #000;
}

/* =========================
   PANEL CRONÓMETRO
========================= */

.clock-panel {
    background: #1b1b1b;
    border-radius: 10px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock-panel h3 {
    margin-bottom: 25px;
}

#gameClock {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 25px;
    font-family: monospace;
}

#clockStatus {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

#clockStatus.running {
    color: #00ff88;
}

#clockStatus.stopped {
    color: #ff5555;
}

.help-text {
    color: #bbb;
    text-align: center;
    line-height: 1.5;
}

/* =========================
   RESULTADOS
========================= */

#resultsScreen {
    justify-content: center;
    align-items: center;
}

#resultsScreen h2 {
    margin-bottom: 30px;
}

.result-item {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.score {
    margin-top: 30px;
    font-size: 2rem;
    font-weight: bold;
    color: #f0c040;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .exam-layout {
        grid-template-columns: 1fr;
    }

    #gameClock {
        font-size: 3rem;
    }

    #countdownNumber {
        font-size: 6rem;
    }

}

.results-separator {
    margin: 30px 0;
}

.metrics {
    margin-bottom: 30px;
}

.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

#resultsTable {
    width: 100%;
    border-collapse: collapse;
}

#resultsTable th,
#resultsTable td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

#resultsTable th {
    background: #222;
}

.status-excellent {
    color: #00ff88;
    font-weight: bold;
}

.status-good {
    color: #88ff00;
}

.status-acceptable {
    color: #ffd000;
}

.status-error {
    color: #ff5555;
}

.status-omitted {
    color: #ff0000;
    font-weight: bold;
}

.exercise-card {

    border: 1px solid #ccc;

    border-radius: 10px;

    padding: 16px;

    margin-bottom: 20px;

    background: #ffffff;

    box-shadow: 0 2px 6px rgba(0,0,0,.12);

}

.exercise-card h4{

    margin-bottom:8px;

}

.exercise-card button{

    margin-top:12px;

    padding:10px 18px;

    cursor:pointer;

}

.exercise-card {

    color:#222;

}

.hidden {

    display: none !important;

}

.public-actions,
.private-actions {

    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;

}

.welcome-message {

    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;

}
