/* Featured Search Bar Styles */
.search-featured {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 0.8rem 2.8rem 0.8rem 1rem;
    border: 2px solid rgba(255, 105, 180, 0.2);
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg, #fff);
    color: var(--text-color, #333);
}

.search-container input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color, #FF69B4);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.search-container input[type="text"]::placeholder {
    color: var(--light-text, #999);
    opacity: 0.7;
}

.search-container button {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: var(--primary-color, #FF69B4);
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-container button:hover {
    transform: scale(1.1);
}

.search-container #search-clear {
    right: 2.5rem;
    display: none;
    color: var(--light-text, #999);
    font-size: 0.9rem;
}

.search-status {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--light-text, #999);
    font-style: italic;
}

/* Loading animation */
.searching::after {
    content: "...";
    animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-featured {
        max-width: none;
        width: 100%;
        order: 3;
        margin: 0.8rem 0 0 0;
    }
}

@media (max-width: 480px) {
    .search-container input[type="text"] {
        padding: 0.7rem 2.5rem 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .search-container button {
        padding: 0.4rem 0.6rem;
    }
}

/* Dropdown search results */
.search-dropdown {
    position: absolute;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    background-color: var(--background-color, #fff);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    border: 2px solid rgba(255, 105, 180, 0.2);
}

.search-dropdown.active {
    display: block;
    animation: dropdown-fade 0.3s ease;
}

.dropdown-content {
    padding: 0.5rem;
}

/* Empty state */
.no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--light-text, #999);
    font-style: italic;
}

/* Song item in dropdown */
.dropdown-song-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.dropdown-song-item:last-child {
    margin-bottom: 0;
}

.dropdown-song-item:hover {
    background-color: rgba(255, 105, 180, 0.1);
}

.dropdown-song-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.dropdown-song-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-song-details {
    flex-grow: 1;
}

.dropdown-song-title {
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.dropdown-song-artist {
    font-size: 0.85rem;
    color: var(--light-text, #999);
    margin: 0;
}

.dropdown-song-difficulty {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.3rem;
}

/* Close dropdown when clicking outside */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
}

.dropdown-overlay.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-dropdown {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .dropdown-song-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .dropdown-song-title {
        font-size: 0.9rem;
    }
}