/* buttons.css - Modern Button Styles for Juegos de la Unidad */

/* Action Buttons - Enhanced Modern Style */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
    border: 3px solid transparent;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition-duration: 0.1s;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-btn:disabled::before {
    display: none;
}

.action-btn.primary {
    background: linear-gradient(145deg, #d32f2f 0%, #b71c1c 100%);
    color: #ffffff;
    box-shadow: 
        0 10px 25px rgba(211, 47, 47, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.action-btn.primary:hover:not(:disabled) {
    background: linear-gradient(145deg, #e53935 0%, #d32f2f 100%);
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-btn.secondary {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: #d32f2f;
    border-color: #d32f2f;
    box-shadow: 
        0 10px 25px rgba(211, 47, 47, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.action-btn.secondary:hover:not(:disabled) {
    background: linear-gradient(145deg, #d32f2f 0%, #b71c1c 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.action-btn.success {
    background: linear-gradient(145deg, #4caf50 0%, #388e3c 100%);
    color: #ffffff;
    box-shadow: 
        0 10px 25px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.action-btn.success:hover:not(:disabled) {
    background: linear-gradient(145deg, #66bb6a 0%, #4caf50 100%);
    box-shadow: 
        0 15px 35px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-btn.large {
    padding: 25px 50px;
    font-size: 1.3rem;
    border-radius: 30px;
    min-width: 250px;
}

.btn-icon {
    font-size: 1.4em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Form Actions Container */
.form-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    flex-wrap: wrap;
    border-radius: 0 0 20px 20px;
    position: relative;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(211, 47, 47, 0.2) 50%, transparent 100%);
}

/* Sport Card Button Styles - Enhanced */
.sport-basic-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sport-basic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f 0%, #ffd700 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sport-basic-card:hover::before {
    transform: scaleX(1);
}

.sport-basic-card:hover {
    border-color: rgba(211, 47, 47, 0.3);
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
}

.sport-basic-card.selected {
    border-color: #d32f2f;
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sport-basic-card.selected::before {
    transform: scaleX(1);
}

.sport-basic-card:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 
        0 0 0 4px rgba(211, 47, 47, 0.1),
        0 15px 35px rgba(211, 47, 47, 0.15);
}

.sport-basic-card h4 {
    color: #d32f2f;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 0 0 0;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sport-card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    padding: 8px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.sport-basic-card:hover .sport-card-logo {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 
        0 8px 20px rgba(211, 47, 47, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Navigation Buttons - Enhanced */
.nav-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid transparent;
    color: #d32f2f;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 5px 15px rgba(211, 47, 47, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.1), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(145deg, #d32f2f 0%, #b71c1c 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(211, 47, 47, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Small Buttons */
.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 15px;
    min-width: auto;
}

/* Icon Only Buttons */
.btn-icon-only {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-icon-only:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Status Buttons (for folio results) - Enhanced */
.status-btn {
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status-btn.approved {
    background: linear-gradient(145deg, #4caf50 0%, #388e3c 100%);
    color: #ffffff;
}

.status-btn.approved:hover {
    background: linear-gradient(145deg, #66bb6a 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status-btn.pending {
    background: linear-gradient(145deg, #ffd700 0%, #ffc107 100%);
    color: #1a1a1a;
}

.status-btn.pending:hover {
    background: linear-gradient(145deg, #ffed4a 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.status-btn.rejected {
    background: linear-gradient(145deg, #f44336 0%, #d32f2f 100%);
    color: #ffffff;
}

.status-btn.rejected:hover {
    background: linear-gradient(145deg, #e57373 0%, #f44336 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(244, 67, 54, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Print Button - Enhanced */
.print-btn {
    background: linear-gradient(145deg, #2196f3 0%, #1976d2 100%);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 8px 20px rgba(33, 150, 243, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.print-btn:hover {
    background: linear-gradient(145deg, #42a5f5 0%, #2196f3 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(33, 150, 243, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Groups - Enhanced */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group .action-btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

/* Back Button - Enhanced */
.btn-back {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: #d32f2f;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Responsive Button Styles */
@media (max-width: 768px) {
    .action-btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1rem;
    }
    
    .action-btn.large {
        padding: 22px 40px;
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .btn-group .action-btn {
        width: 100%;
        max-width: 350px;
    }
    
    .sport-basic-card {
        min-height: 120px;
        padding: 20px;
    }
    
    .sport-card-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .sport-basic-card h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .action-btn {
        padding: 16px 25px;
        font-size: 0.95rem;
        max-width: 300px;
    }
    
    .action-btn.large {
        padding: 20px 35px;
        font-size: 1rem;
    }
    
    .sport-basic-card {
        min-height: 110px;
        padding: 18px 12px;
    }
    
    .sport-basic-card h4 {
        font-size: 1rem;
        margin-top: 10px;
    }
    
    .sport-card-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
        padding: 6px;
    }
    
    .form-actions {
        padding: 25px 15px;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .status-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .print-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        font-size: 1.2em;
    }
}

/* Focus States for Accessibility */
.action-btn:focus-visible,
.sport-basic-card:focus-visible,
.nav-btn:focus-visible,
.btn-back:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
    box-shadow: 
        0 0 0 6px rgba(255, 215, 0, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Loading States */
.action-btn.loading {
    position: relative;
    pointer-events: none;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.action-btn.loading .btn-icon,
.action-btn.loading .btn-text {
    opacity: 0;
}