/**
 * FEPRAFO Live Search Widget - Styles
 * @package FEPRAFO_Elementor_Widgets
 * @since 1.0.0
 */

/* ===========================
   WRAPPER
   =========================== */
.feprafo-live-search-wrapper {
    position: relative;
    width: 100%;
}

/* ===========================
   INPUT WRAPPER
   =========================== */
.feprafo-search-input-wrapper {
    position: relative;
    width: 100%;
}

/* ===========================
   SEARCH ICON
   =========================== */
.feprafo-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

/* ===========================
   INPUT FIELD
   =========================== */
.feprafo-search-input {
    width: 100%;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.feprafo-search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.feprafo-search-input::-webkit-input-placeholder {
    color: #94a3b8;
}

.feprafo-search-input::-moz-placeholder {
    color: #94a3b8;
}

.feprafo-search-input:-ms-input-placeholder {
    color: #94a3b8;
}

/* ===========================
   CLEAR BUTTON
   =========================== */
.feprafo-clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #F1F5F9;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
}

.feprafo-clear-btn svg {
    width: 18px;
    height: 18px;
}

.feprafo-clear-btn:hover {
    background: #E2E8F0;
    color: #2C5F8D;
}

/* ===========================
   RESULTS COUNT
   =========================== */
.feprafo-results-count {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.feprafo-results-count.success {
    color: #10b981;
}

.feprafo-results-count.error {
    color: #ef4444;
}

/* ===========================
   NO RESULTS MESSAGE
   =========================== */
.feprafo-no-results {
    text-align: center;
    padding: 80px 20px;
    background: #FFFFFF;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feprafo-no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.feprafo-no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px 0;
}

.feprafo-no-results-text {
    font-size: 16px;
    color: #64748B;
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .feprafo-search-icon {
        left: 16px;
    }
    
    .feprafo-search-input {
        font-size: 16px; /* Empêche le zoom sur iOS */
    }
    
    .feprafo-clear-btn {
        right: 12px;
        width: 28px;
        height: 28px;
    }
    
    .feprafo-clear-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .feprafo-no-results {
        padding: 60px 16px;
        margin-top: 32px;
    }
    
    .feprafo-no-results-icon {
        font-size: 48px;
    }
    
    .feprafo-no-results-title {
        font-size: 20px;
    }
    
    .feprafo-no-results-text {
        font-size: 14px;
    }
}
