@import url('theme.css');

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Encabezados */
h1, h2 {
    text-align: center;
    color: #2c3e50;
}

/* Contenedor principal */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

table th {
    background: #3498db;
    color: #fff;
}

/* Inputs y Botones Generales */
input[type="number"], input[type="email"], input[type="password"], select {
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

input[type="submit"], button {
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    border: none;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="submit"]:hover, button:hover {
    background: #2980b9;
}

/* Ocultar flechas en inputs numéricos */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- MEJORAS PARA LOGOS Y NOMBRES (NUEVO) --- */
.img-equipo-v2 {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

.equipo-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nombre-equipo-v2 {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    margin: 4px 0;
    line-height: 1.2;
}

/* --- MEJORAS PARA MÓVIL (PocasCopas) --- */

.torneo-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 0;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}
.torneo-container::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
    /* Transformar tabla en lista de tarjetas */
    #formPronosticos table, 
    #formPronosticos thead, 
    #formPronosticos tbody, 
    #formPronosticos th, 
    #formPronosticos td, 
    #formPronosticos tr { 
        display: block; 
    }
    
    #formPronosticos thead tr { 
        position: absolute; 
        top: -9999px; 
        left: -9999px; 
    }
    
    #formPronosticos tr { 
        margin-bottom: 2rem; 
        border: 1px solid #444; 
        border-radius: 15px; 
        background: #1a1a1a; /* Fondo más oscuro para resaltar tarjetas */
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    #formPronosticos td { 
        border: none !important; 
        padding: 10px 0 !important;
        text-align: center !important;
    }

    /* Forzar que los bloques de equipos se mantengan alineados horizontalmente en la tarjeta */
    .partido-row-v2 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* Estilos específicos para los botones +/- y el input central */
    .input-gol {
        height: 55px !important;
        font-size: 1.6rem !important;
        width: 75px !important;
        border-radius: 8px !important;
        border: none !important;
        font-weight: bold !important;
    }

    .gol-control {
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 15px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 12px;
    }
}
/* DISEÑO VERTICAL DE PARTIDOS */
.card-partido-vertical {
    max-width: 350px;
    margin: 0 auto;
}

.img-v-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nombre-v-equipo {
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 1px;
}

/* MARCADOR ESTILO PASTILLA */
.marcador-v-control {
    background: #2b2b2b; /* Fondo gris oscuro redondo */
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #444;
}

.btn-v-gol {
    background: none;
    border: 1px solid #666;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.input-v-gol {
    width: 60px;
    height: 50px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
}
@media (max-width: 768px) {
    /* Forzar que los inputs de goles ocupen buen espacio para el dedo */
    input[type="number"] {
        height: 60px !important;
        font-size: 1.5rem !important;
        min-width: 70px;
    }
}
