/* Estilos para tarjetas en vista móvil */
.results-card {
    display: none;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    padding: 18px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.results-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.18);
}

.results-card.top-3-card {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(230, 57, 70, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.position-card {
    font-weight: 700;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 18px;
    min-width: 40px;
    text-align: center;
}

.position-card.top-3 {
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

.bib-number-card {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.runner-info {
    margin-bottom: 12px;
}

.runner-name-card {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--dark-color);
    line-height: 1.2;
}

.runner-category-card {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #457b9d;
}

.time-label-card {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.time-value-card {
    font-family: monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 0.5px;
}

.card-actions {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 12px;
}

.card-btn {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    border-radius: 8px;
    border: none;
    background-color: #f8f9fa;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.card-btn-certificate {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.card-btn-metrics {
    color: var(--success-color);
    border-bottom: 2px solid var(--success-color);
}

.card-btn-photos {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.card-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

@media (max-width: 768px) {
    .results-table {
        display: none;
    }
    
    .results-card {
        display: block;
    }
    
    /* Ajustes adicionales para vista móvil */
    .sort-by {
        flex-wrap: wrap;
    }
    
    .pagination {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-btn {
        padding: 12px 10px;
    }
    
    .time-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .time-info > div {
        width: 100%;
        padding: 6px 2px;
    }
    
    .position-card {
        min-width: 44px;
        font-size: 20px;
        padding: 10px 12px;
    }
}
