/* Global Search Dropdown Styles */
.global-search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 8px;
}

.global-search-input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    background: white;
}

.global-search-input:focus {
    background: #f8f9fa;
}

.global-search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.global-search-results::-webkit-scrollbar {
    width: 6px;
}

.global-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.global-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.global-search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.global-search-loading {
    display: none;
    padding: 20px;
    text-align: center;
    color: #666;
}

.global-search-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0070f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    display: inline-block;
}

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

/* Search result items */
.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Search button styles */
.search-btn, .search-button, [data-search] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover, .search-button:hover, [data-search]:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .global-search-dropdown {
        width: calc(100vw - 40px);
        right: -20px;
        max-width: none;
    }
    
    .global-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .global-search-dropdown {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .global-search-input {
        background: #1a1a1a;
        color: #fff;
    }
    
    .global-search-input:focus {
        background: #2a2a2a;
    }
    
    .search-result-item:hover {
        background: #2a2a2a;
    }
    
    .search-result-item {
        border-bottom-color: #333;
    }
} 