/* folio-status.css - Modern Folio Status Styles for Juegos de la Unidad */

/* Folio Results Container */
.folio-result {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(211, 47, 47, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.folio-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d32f2f 0%, #ffd700 50%, #d32f2f 100%);
}

/* Folio Card */
.folio-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(211, 47, 47, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.folio-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 
        0 -5px 15px rgba(211, 47, 47, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Folio Display */
.folio-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: #d32f2f;
    background: linear-gradient(145deg, #d32f2f 0%, #b71c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
}

.folio-display::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f 0%, #ffd700 100%);
    border-radius: 2px;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-indicator.pending {
    background: linear-gradient(145deg, #ffd700 0%, #ffc107 100%);
    color: #1a1a1a;
}

.status-indicator.pending::after {
    content: '⏳';
    font-size: 1.3em;
}

.status-indicator.approved {
    background: linear-gradient(145deg, #4caf50 0%, #388e3c 100%);
    color: #ffffff;
}

.status-indicator.approved::after {
    content: '✅';
    font-size: 1.3em;
}

.status-indicator.rejected {
    background: linear-gradient(145deg, #f44336 0%, #d32f2f 100%);
    color: #ffffff;
}

.status-indicator.rejected::after {
    content: '❌';
    font-size: 1.3em;
}

.status-indicator.selected {
    background: linear-gradient(145deg, #9c27b0 0%, #7b1fa2 100%);
    color: #ffffff;
}

.status-indicator.selected::after {
    content: '🏆';
    font-size: 1.3em;
}

/* Athlete Info Grid */
.athlete-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.05),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.athlete-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.athlete-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f 0%, #ffd700 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.athlete-info-item:hover::before {
    transform: scaleX(1);
}

.athlete-info-item:hover {
    border-color: rgba(211, 47, 47, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.info-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.info-value.highlight {
    color: #d32f2f;
    font-weight: 700;
}

/* Sport Details in Folio */
.sport-details-folio {
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    border: 2px solid rgba(211, 47, 47, 0.1);
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.05),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.sport-details-folio h3 {
    color: #d32f2f;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sport-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sport-detail-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

.sport-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(211, 47, 47, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.sport-detail-card .detail-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sport-detail-card .detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d32f2f;
}

/* Payment Information */
.payment-info {
    background: linear-gradient(145deg, #f8fff9 0%, #ffffff 100%);
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
}

.payment-info h4 {
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.payment-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #4caf50;
    margin: 20px 0;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.payment-instructions {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.payment-instructions p {
    margin: 10px 0;
    font-weight: 500;
    line-height: 1.6;
}

.payment-instructions strong {
    color: #2e7d32;
}

/* Empty State */
.folio-empty {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed rgba(211, 47, 47, 0.3);
}

.folio-empty-icon {
    font-size: 4rem;
    color: #d32f2f;
    margin-bottom: 20px;
    opacity: 0.7;
}

.folio-empty h3 {
    color: #d32f2f;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.folio-empty p {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Error State */
.folio-error {
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: #d32f2f;
}

.folio-error-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.folio-error h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.folio-error p {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Action Buttons in Folio Results */
.folio-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Loading State for Folio Search */
.folio-loading {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.folio-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(211, 47, 47, 0.1);
    border-top: 4px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.folio-loading p {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .folio-result {
        padding: 25px 20px;
        margin: 20px 10px;
        border-radius: 20px;
    }
    
    .folio-card {
        padding: 25px 20px;
    }
    
    .folio-display {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }
    
    .athlete-info {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 20px;
    }
    
    .sport-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .status-indicator {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .payment-amount {
        font-size: 2rem;
    }
    
    .folio-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .folio-empty,
    .folio-error {
        padding: 40px 20px;
    }
    
    .folio-empty-icon,
    .folio-error-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .folio-result {
        padding: 20px 15px;
        margin: 15px 5px;
    }
    
    .folio-card {
        padding: 20px 15px;
    }
    
    .folio-display {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .athlete-info {
        padding: 20px 15px;
    }
    
    .athlete-info-item {
        padding: 15px;
    }
    
    .sport-details-folio,
    .payment-info {
        padding: 25px 20px;
    }
    
    .payment-amount {
        font-size: 1.8rem;
    }
    
    .status-indicator {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .folio-empty h3,
    .folio-error h3 {
        font-size: 1.3rem;
    }
    
    .folio-empty p,
    .folio-error p {
        font-size: 0.95rem;
    }
}