/* Falta Uno - Estilos Generales */

/* Hero Section Marketplace */
.fu-hero {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fu-hero h1 {
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fu-hero p {
    font-size: 1rem;
    opacity: 0.95;
    color: #ffffff !important;
}

/* Cards del Marketplace */
.fu-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.fu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Avatares y Círculos de Iniciales */
.fu-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Chat Container - Estilo CanchaFija */
.chat-container {
    height: calc(100vh - 120px);
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(45, 90, 39, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(45, 90, 39, 0.2);
    z-index: 10;
    position: relative;
}

.chat-header::after {
    content: '⚽';
    position: absolute;
    right: 5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.15;
    pointer-events: none;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.message:hover {
    transform: translateY(-1px);
}

.message-incoming {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(45, 90, 39, 0.1);
}

.message-outgoing {
    background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
}

.message-outgoing .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.message-time {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.4);
    text-align: right;
    margin-top: 6px;
    display: block;
}

.message-system {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    color: #2d5a27;
    align-self: center;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
    max-width: 90%;
    text-align: center;
    margin: 10px 0;
    border: 1px solid rgba(45, 90, 39, 0.15);
    font-weight: 500;
}

.chat-input-area {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.chat-input {
    flex-grow: 1;
    border: 2px solid rgba(45, 90, 39, 0.15);
    padding: 12px 18px;
    border-radius: 25px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #ffffff;
}

.chat-input:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.4);
}

.btn-send:active {
    transform: scale(0.95);
}

.btn-send:disabled {
    background: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
    cursor: not-allowed;
    box-shadow: none;
}

/* Ratings */
.rating-stars .star-rating {
    transition: color 0.2s;
}
.rating-stars .star-rating:hover {
    color: #ffc107 !important;
}

/* Panel de Confirmación - Versión Ultra Compacta */
.confirmacion-panel {
    animation: slideDown 0.3s ease-out;
    flex-shrink: 0;
}

.confirmacion-panel .card {
    margin: 0.25rem 0.5rem !important;
    padding: 0 !important;
    border-radius: 0.5rem !important;
}

.confirmacion-panel .card-body {
    padding: 0.5rem !important;
}

.confirmacion-panel .card-title {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    display: none;
}

.confirmacion-panel .card-text {
    font-size: 0.7rem !important;
    margin-bottom: 0.25rem !important;
    display: none;
}

.confirmacion-panel .confirmacion-estado {
    margin-bottom: 0.25rem !important;
}

.confirmacion-panel .alert {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.65rem !important;
    margin-bottom: 0.25rem !important;
}

.confirmacion-panel .d-grid {
    gap: 0.25rem !important;
}

.confirmacion-panel .btn {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
}

.confirmacion-panel small {
    font-size: 0.6rem !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Iconos de Confirmación - Estilo CanchaFija */
.conf-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.conf-pending {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    animation: gentlePulse 2s ease-in-out infinite;
}

.conf-confirmed {
    background: linear-gradient(135deg, #2d5a27 0%, #198754 100%);
    color: #fff;
    animation: successPulse 0.6s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Panel de Match Confirmado - Versión Compacta */
.match-confirmado-panel {
    animation: bounceIn 0.5s ease;
}

.match-confirmado-panel .card {
    margin: 0.5rem !important;
    padding: 0.5rem !important;
}

.match-confirmado-panel .card-body {
    padding: 0.75rem !important;
}

.match-confirmado-panel .card-title {
    font-size: 1rem !important;
}

.match-confirmado-panel .card-text {
    font-size: 0.85rem !important;
}

.match-confirmado-panel i {
    font-size: 2rem !important;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        }
    }
    
    /* Responsive - Hero Section */
    @media (max-width: 768px) {
        .fu-hero {
            padding: 1.5rem 0;
            border-radius: 0 0 1rem 1rem;
        }
        
        .fu-hero h1 {
            font-size: 1.5rem;
        }
        
        .fu-hero p {
            font-size: 0.9rem;
        }
        
        /* Chat Responsive */
        .chat-container {
            height: calc(100vh - 100px);
        }
        
        .chat-header {
            padding: 0.875rem 1rem;
        }
        
        .chat-header::after {
            font-size: 1.2rem;
            right: 4rem;
        }
        
        .chat-messages {
            padding: 1rem;
        }
        
        .message {
            max-width: 85%;
            padding: 10px 14px;
        }
        
        .chat-input-area {
            padding: 0.875rem 1rem;
        }
        
        .chat-input {
            padding: 10px 15px;
            font-size: 0.9rem;
        }
        
        .btn-send {
            width: 45px;
            height: 45px;
        }
        
        .conf-icon {
            width: 36px;
            height: 36px;
            font-size: 1rem;
        }
    }

    .chat-read-only-banner {
        background: linear-gradient(135deg, #0d6efd, #0dcaf0);
        color: white;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .chat-read-only-banner i {
        margin-right: 0.25rem;
    }
