/* FAQ Search Styles */
.faq-search {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.faq-search .form-control {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-search .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.faq-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.faq-search .btn {
    border-radius: 12px;
    padding: 1rem 2rem;
    background: var(--saafe-primary);
    border: none;
    transition: all 0.3s ease;
}

.faq-search .btn:hover {
    background: var(--saafe-primary-dark);
    transform: translateY(-1px);
}

/* Search Results Styling */
.search-highlight {
    background-color: rgba(74, 0, 224, 0.1);
    border-left: 3px solid var(--saafe-primary);
    transition: all 0.3s ease;
}

.search-highlight mark {
    background-color: rgba(74, 0, 224, 0.2);
    color: var(--saafe-primary);
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

.search-focus {
    background-color: rgba(74, 0, 224, 0.15);
    border-left: 3px solid var(--saafe-accent);
    transform: translateX(5px);
}

/* Search Results Navigation */
.search-navigation-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: none;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.search-navigation-hint.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-search {
        margin: 1rem;
    }

    .faq-search .form-control {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        padding-left: 2.5rem;
    }

    .faq-search .btn {
        padding: 0.75rem 1.5rem;
    }

    .search-navigation-hint {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.8rem;
    }
}

/* Search Loading State */
.faq-search.loading .form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='2' x2='12' y2='6'%3E%3C/line%3E%3Cline x1='12' y1='18' x2='12' y2='22'%3E%3C/line%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'%3E%3C/line%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'%3E%3C/line%3E%3Cline x1='2' y1='12' x2='6' y2='12'%3E%3C/line%3E%3Cline x1='18' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'%3E%3C/line%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Results State */
.no-results-message {
    text-align: center;
    padding: 2rem;
    color: var(--saafe-text-muted);
    font-size: 1.1rem;
}

.no-results-message i {
    font-size: 2rem;
    color: var(--saafe-border);
    margin-bottom: 1rem;
    display: block;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.visible {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--saafe-border);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(74, 0, 224, 0.05);
}

.suggestion-item .suggestion-category {
    font-size: 0.8rem;
    color: var(--saafe-text-muted);
    margin-top: 0.25rem;
}

/* Accessibility */
.search-highlight:focus-within {
    outline: 2px solid var(--saafe-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .faq-search,
    .search-navigation-hint,
    .search-suggestions {
        display: none !important;
    }

    .search-highlight {
        background: none;
        border-left: none;
    }

    .search-highlight mark {
        background: none;
        color: inherit;
        text-decoration: underline;
    }
} 