/**
 * ROC Unified Ticker Search Styles
 * 
 * Consistent styling for ticker search across all tools
 * 
 * @package RyanOConnell
 * @since 1.0.0
 */

/* Ticker Suggestions Dropdown */
.ticker-suggestions {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Individual Suggestion Item */
.ticker-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.ticker-suggestion:last-child {
    border-bottom: none;
}

/* Hover State */
.ticker-suggestion:hover {
    background-color: #f8f9fa;
}

/* Keyboard Navigation Highlight */
.ticker-suggestion.highlighted {
    background-color: #e3f2fd;
    outline: 2px solid #0066cc;
    outline-offset: -2px;
}

/* Ticker Symbol Styling */
.ticker-suggestion strong {
    color: #0066cc;
    font-weight: 600;
}

/* Exchange/Type Label */
.ticker-suggestion small {
    color: #6c757d;
}

/* No Results Message */
.ticker-no-results {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Loading State */
.ticker-suggestions.loading {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-suggestions.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: ticker-search-spin 1s linear infinite;
}

@keyframes ticker-search-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure proper positioning context */
.search-form-wrapper,
.search-container,
.position-relative {
    position: relative;
}

/* Scrollbar Styling */
.ticker-suggestions::-webkit-scrollbar {
    width: 8px;
}

.ticker-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ticker-suggestions::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.ticker-suggestions::-webkit-scrollbar-thumb:hover {
    background: #555;
}