/* ============================================
   NAVBAR - Q-PLAY
   Modern glass-morphism design
   ============================================ */

/* --- DESKTOP NAVBAR --- */
.navbar-desktop {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 32px;
    background: rgba(10, 7, 4, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* --- Brand --- */
.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar-brand img {
    height: 36px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
}

/* --- Navigation Links --- */
.navbar-links {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link i {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.06);
}

.nav-link:hover i {
    color: #ffd700;
}

.nav-link.active {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.08);
}

.nav-link.active i {
    color: #ffd700 !important;
}

/* --- Right Side Actions --- */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* --- SEARCH WRAPPER (Desktop) --- */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    padding: 6px 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-toggle:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.06);
}

/* --- Search Input Wrapper --- */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* --- Search Bar (Desktop) --- */
.navbar-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 2px 2px 2px 14px;
    transition: all 0.3s ease;
    height: 34px;
    max-width: 0;
    min-width: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.navbar-search.is-open {
    max-width: 280px;
    min-width: 180px;
    width: 100%;
    opacity: 1;
    visibility: visible;
    margin-left: 8px;
}

.navbar-search:focus-within {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.navbar-search input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    padding: 0;
    outline: none;
    width: 100%;
    min-width: 60px;
    height: 100%;
}

.navbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.navbar-search button {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border: none;
    border-radius: 30px;
    padding: 4px 12px;
    color: #0a0704;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 13px;
    flex-shrink: 0;
}

.navbar-search button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.navbar-search button i {
    font-size: 13px;
}

/* --- Cart --- */
.navbar-cart {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 20px;
    padding: 4px 6px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-cart:hover {
    color: #ffd700;
}

.navbar-cart .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ffd700;
    color: #0a0704;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- CREATE+ Button --- */
.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0a0704 !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-create:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
    color: #0a0704 !important;
}

.btn-create i {
    font-size: 10px;
}

/* --- User Account (Icon Only) --- */
.navbar-user {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.navbar-user:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.06);
}

.navbar-user i {
    font-size: 24px;
}

/* --- Hide user name --- */
.navbar-user .user-name {
    display: none !important;
}

/* --- MOBILE NAVBAR --- */
.navbar-mobile {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 7, 4, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.06);
}

.navbar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-mobile-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.navbar-mobile-brand img {
    width: auto;
    height: 28px;
    flex-shrink: 0;
}

.navbar-mobile-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #ffd700;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-actions .navbar-cart {
    font-size: 18px;
}

.mobile-actions .navbar-user {
    width: 32px;
    height: 32px;
}

.mobile-actions .navbar-user i {
    font-size: 20px;
}

/* --- Mobile Search Toggle --- */
.mobile-search-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    padding: 4px 6px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-toggle:hover {
    color: #ffd700;
}

/* --- Mobile Search Form --- */
.mobile-search-form {
    display: none;
    padding: 8px 0 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 6px;
}

.mobile-search-form.is-open {
    display: block;
}

.mobile-search-form form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 2px 2px 2px 14px;
    height: 34px;
}

.mobile-search-form input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    padding: 0;
    outline: none;
    width: 100%;
    height: 100%;
}

.mobile-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.mobile-search-form button {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border: none;
    border-radius: 30px;
    padding: 4px 12px;
    color: #0a0704;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 13px;
    flex-shrink: 0;
}

.mobile-search-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.mobile-search-form button i {
    font-size: 13px;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 7, 4, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    width: 100%;
    padding: 70px 24px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: #ffd700;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.06);
    color: #ffd700;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover i {
    color: #ffd700;
}

.mobile-nav-link.active {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.06);
}

.mobile-nav-link.active i {
    color: #ffd700 !important;
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 12px;
}

.mobile-btn-create {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0a0704 !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.mobile-btn-create:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
    color: #0a0704 !important;
}

.mobile-btn-create i {
    font-size: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .navbar-desktop {
        padding: 8px 20px;
    }
    .btn-create {
        padding: 5px 12px;
        font-size: 11px;
    }
    .navbar-user i {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-desktop {
        display: none;
    }
    .navbar-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar-mobile {
        padding: 6px 10px;
    }
    .navbar-mobile-title {
        font-size: 12px;
    }
    .navbar-mobile-brand img {
        height: 24px;
    }
    .mobile-menu-content {
        padding: 60px 16px 30px;
    }
    .mobile-nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    .mobile-btn-create {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ============================================
   TOOLTIP STYLES - Added for icon hover effects
   ============================================ */

/* ── Tooltip Container ── */
.tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ── Tooltip Text ── */
.tooltip-trigger .tooltip-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 999;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* ── Tooltip Arrow ── */
.tooltip-trigger .tooltip-text::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.92);
}

/* ── Hover State ── */
.tooltip-trigger:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    bottom: -28px;
}

/* ── Desktop Navbar Specific ── */
.navbar-desktop .tooltip-trigger .tooltip-text {
    bottom: -32px;
    font-size: 11px;
    padding: 4px 12px;
}

.navbar-desktop .tooltip-trigger:hover .tooltip-text {
    bottom: -28px;
}

/* ── Mobile Navbar Specific ── */
.navbar-mobile .tooltip-trigger .tooltip-text {
    bottom: -28px;
    font-size: 10px;
    padding: 3px 10px;
}

.navbar-mobile .tooltip-trigger:hover .tooltip-text {
    bottom: -26px;
}

/* ── CREATE+ Button Tooltip ── */
.btn-create.tooltip-trigger .tooltip-text {
    bottom: -32px;
}

.btn-create.tooltip-trigger:hover .tooltip-text {
    bottom: -28px;
}

/* ── Cart Tooltip ── */
.navbar-cart.tooltip-trigger .tooltip-text {
    bottom: -32px;
}

.navbar-cart.tooltip-trigger:hover .tooltip-text {
    bottom: -28px;
}

/* ── Responsive Tooltips ── */
@media (max-width: 768px) {
    .tooltip-trigger .tooltip-text {
        font-size: 10px;
        padding: 3px 10px;
        bottom: -26px;
    }
    
    .tooltip-trigger:hover .tooltip-text {
        bottom: -24px;
    }
}

/* ============================================
   SEARCH SUGGESTIONS DROPDOWN
   ============================================ */

/* ── Search Suggestions Container ── */
.search-suggestions {
    position: absolute;
    top: 42px;
    left: 0;
    width: 100%;
    min-width: 320px;
    background: rgba(10, 7, 4, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 8px 0;
}

.search-suggestions::-webkit-scrollbar {
    width: 4px;
}

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

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.search-suggestions.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ── Suggestions List ── */
.suggestions-list {
    display: none;
}

.suggestions-list .suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.suggestions-list .suggestion-item:last-child {
    border-bottom: none;
}

.suggestions-list .suggestion-item:hover,
.suggestions-list .suggestion-item.active {
    background: rgba(255, 215, 0, 0.06);
}

.suggestions-list .suggestion-item__cover {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.suggestions-list .suggestion-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestions-list .suggestion-item__info {
    flex: 1;
    min-width: 0;
}

.suggestions-list .suggestion-item__title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestions-list .suggestion-item__subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestions-list .suggestion-item__badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.suggestions-list .suggestion-item__badge.badge-song {
    background: rgba(255, 107, 0, 0.2);
    color: #ff6b00;
}

.suggestions-list .suggestion-item__badge.badge-artist {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.suggestions-list .suggestion-item__badge.badge-beat {
    background: rgba(0, 255, 200, 0.2);
    color: #00ffc8;
}

/* ── Empty & Loading States ── */
.suggestions-empty,
.suggestions-loading {
    display: none;
    padding: 20px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.suggestions-loading i {
    margin-right: 8px;
    color: #ffd700;
}

.suggestions-empty {
    color: rgba(255, 255, 255, 0.3);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .search-suggestions {
        top: 38px;
        min-width: 0;
        width: 100%;
        max-height: 350px;
        border-radius: 10px;
    }
    
    .suggestions-list .suggestion-item {
        padding: 8px 12px;
    }
    
    .suggestions-list .suggestion-item__cover {
        width: 32px;
        height: 32px;
    }
    
    .suggestions-list .suggestion-item__title {
        font-size: 12px;
    }
    
    .suggestions-list .suggestion-item__subtitle {
        font-size: 10px;
    }
}