/* ===== MINIMAL PINK SEARCH BAR STYLES ===== */

/* Main search container */
.search-featured {
    flex-grow: 1;
    max-width: 220px;
    margin: 0;
    position: relative;
}

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

/* Minimal pink search input - always pink themed */
.search-container input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 0 15px 0 40px;
    border: 1.5px solid rgba(255, 105, 180, 0.3);
    border-radius: 20px;
    background: rgba(255, 105, 180, 0.05);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: var(--text-color, #1a1a1a);
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
}

.search-container input[type="text"]:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    transform: translateY(-1px);
}

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

/* Search icon - pink tinted */
.search-container .search-icon,
.search-container .fas.fa-search:first-of-type,
.search-container i.fas.fa-search:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff69b4;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

/* Hide search button */
.search-container button:not(#search-clear) {
    display: none;
}

/* Clear button */
.search-container #search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    background: none;
    border: none;
    color: var(--light-text, #6b7280);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.search-container #search-clear:hover {
    background: rgba(255, 105, 180, 0.1);
    color: #ff69b4;
    transform: translateY(-50%) scale(1.1);
}

/* Search status */
.search-status {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 13px;
    color: var(--light-text, #6b7280);
    font-style: italic;
}

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

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

/* ===== MINIMAL PINK SEARCH DROPDOWN ===== */
.search-dropdown {
    position: absolute;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 105, 180, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: calc(100% + 8px);
    left: 0;
    display: none;
}

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

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content {
    padding: 8px;
}

/* Empty state */
.no-results {
    padding: 20px;
    text-align: center;
    color: var(--light-text, #6b7280);
    font-style: italic;
    font-size: 14px;
}

/* Song item in dropdown */
.dropdown-song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 4px;
}

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

.dropdown-song-item:hover {
    background: rgba(255, 105, 180, 0.08);
    transform: translateX(2px);
}

.dropdown-song-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.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, #1a1a1a);
    margin: 0 0 2px 0;
    line-height: 1.3;
    font-size: 14px;
}

.dropdown-song-artist {
    font-size: 12px;
    color: var(--light-text, #6b7280);
    margin: 0;
}

.dropdown-song-difficulty {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 2px;
    font-weight: 500;
}

/* Close dropdown overlay */
.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-featured {
        max-width: none;
        width: 100%;
        order: 3;
        margin: 12px 0 0 0;
    }
    
    .search-dropdown {
        max-height: 70vh;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .search-container input[type="text"] {
        height: 36px;
        font-size: 13px;
        padding: 8px 12px 8px 35px;
        border-radius: 18px;
    }
    
    .search-container #search-clear {
        width: 18px;
        height: 18px;
        right: 6px;
    }
    
    .dropdown-song-thumbnail {
        width: 36px;
        height: 36px;
    }
    
    .dropdown-song-title {
        font-size: 13px;
    }
    
    .dropdown-song-artist {
        font-size: 11px;
    }
    
    .dropdown-song-item {
        padding: 8px;
    }
}