/**
 * FILE: reportar-avistamiento.css
 * Estilos específicos para el formulario de reportar avistamientos
 */

/* ======================
   STEP HEADERS
   ====================== */

.step-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.step-heading .step-number {
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ======================
   OPTIONAL DETAILS
   ====================== */

#optionalDetailsFieldset:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ======================
   SIDEBAR
   ====================== */

.sidebar {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

/* ======================
   COINCIDENCES
   ====================== */

.coincidencias-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: var(--border-radius-sm);
}

.coincidence-card.match-high {
    border-left: 5px solid #dc3545;
    background-color: #fff5f5;
}

.coincidence-card.match-medium {
    border-left: 5px solid #ffc107;
    background-color: #fffbec;
}

.coincidence-card.match-low {
    border-left: 5px solid #6c757d;
}

.coincidence-card img {
    object-fit: cover;
}

/* ======================
   MAP
   ====================== */

#mapaReporte {
    height: 350px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #eee;
}

/* ======================
   LOCATION INFO
   ====================== */

#ubicacion-info .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: .2em;
    vertical-align: -0.2em;
}

/* ======================
    PREMIUM COINCIDENCES
   ====================== */

.coincidence-card {
    padding: 1rem !important;
    gap: 1rem !important;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coincidence-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    text-decoration: none;
}

.coincidence-card.match-high {
    border-left: 5px solid #ff6b6b !important;
}

.coincidence-card.match-medium {
    border-left: 5px solid #fbc531 !important;
}

.coincidence-card.match-low {
    border-left: 5px solid #a4b0be !important;
}

.coincidence-card img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coincidence-card h6 {
    font-size: 1rem !important;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-bottom: 4px !important;
}

.coincidence-card p {
    font-size: 0.85rem !important;
    line-height: 1.4;
    color: #4b5563;
}

.coincidence-card .badge {
    font-size: 0.7rem !important;
    padding: 0.4em 0.6em !important;
    font-weight: 600;
}

.btn-agregar-seguimiento {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
    margin-top: 0.75rem !important;
    border-radius: 6px !important;
}


/* BOTÓN LLAMATIVO "LO VI" - CELESTE Y COMPACTO */
.btn-flashy {
    background: linear-gradient(45deg, #29B6F6, #039BE5);
    /* Celeste Material Design */
    border: none;
    color: white !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(3, 155, 229, 0.4);
    animation: pulse-attention 2s infinite;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: auto !important;
    /* Force auto width */
    display: inline-block;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.btn-flashy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 155, 229, 0.6);
    background: linear-gradient(45deg, #4FC3F7, #0288D1);
}

.btn-flashy i {
    color: #fff !important;
    animation: shake 2s infinite;
}

@keyframes pulse-attention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(3, 155, 229, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(3, 155, 229, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(3, 155, 229, 0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* ======================
    CHAR COUNTERS
    ====================== */
.char-counter {
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
}

.char-counter.text-danger {
    color: #dc3545 !important;
}

.char-counter.text-warning {
    color: #ffc107 !important;
}

.char-counter.text-success {
    color: #28a745 !important;
}

.char-feedback {
    font-size: 0.8rem;
    transition: color 0.3s;
}

/* ======================
    PHOTO UPLOAD SLOTS (PREMIUM DESIGN)
    ====================== */
.photo-upload-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-upload-slot {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 160px;
    width: 100%;
}

.photo-upload-slot:hover {
    border-color: #667eea;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.15);
}

.photo-upload-slot.has-preview {
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #000;
}

.photo-upload-slot input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.photo-upload-slot:hover .icon-circle {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.photo-upload-slot .placeholder-text {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}

.photo-upload-slot .preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.photo-upload-slot.has-preview .preview-img {
    opacity: 1;
}

.photo-upload-slot.has-preview .slot-content {
    opacity: 0;
    pointer-events: none;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
    pointer-events: none;
}

.photo-upload-slot.has-preview:hover .hover-overlay {
    opacity: 1;
}

.remove-photo-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.photo-upload-slot.has-preview .remove-photo-btn {
    opacity: 1;
    transform: scale(1);
}

.photo-upload-slot .remove-photo-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}