/* Live Search Dropdown Styles - Theme Color: #e89478 */
/* Desktop & Mobile SEPARATE Styles */

/* Common Styles */
.live-search-loading,
.live-search-error,
.live-search-no-results {
    padding: 20px;
    text-align: center;
    color: #e89478;
    font-size: 14px;
}

.live-search-error {
    color: #ff6b6b;
}

.live-search-results {
    padding: 0;
    margin: 0;
}

.live-search-item {
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.2s ease;
}

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

.live-search-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.live-search-item a:hover,
.live-search-item.selected a {
    background-color: #2a2a2a;
    border-left: 3px solid #e89478;
    padding-left: 12px;
}

.live-search-thumb {
    flex-shrink: 0;
    margin-right: 12px;
    width: 100px;
    height: 56px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
}

.live-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-search-item:hover .live-search-thumb img {
    transform: scale(1.05);
}

.live-search-content {
    flex: 1;
    min-width: 0;
}

.live-search-content h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-item:hover .live-search-content h4 {
    color: #e89478;
}

.live-search-meta {
    display: flex;
    align-items: center;
}

.live-search-meta span.views {
    font-size: 12px;
    color: #bbb;
}

/* Scrollbar */
.live-search-dropdown::-webkit-scrollbar {
    width: 10px;
}

.live-search-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.live-search-dropdown::-webkit-scrollbar-thumb {
    background: #e89478;
    border-radius: 5px;
}

.live-search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #d67f5f;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-search-dropdown {
    animation: slideDown 0.2s ease;
}

/* ========================================
   DESKTOP ONLY - 769px and above
   ======================================== */
@media (min-width: 769px) {
    /* Hide mobile dropdown */
    .live-search-dropdown-mobile {
        display: none !important;
    }
    
    /* Desktop dropdown positioning */
    .header-search {
        position: relative;
    }
    
    .live-search-dropdown-desktop {
        position: absolute;
        top: 100%;
        right: 0;
        width: 500px;
        max-width: 500px;
        background: #1a1a1a;
        border: 2px solid #e89478;
        max-height: 450px;
        overflow-y: auto;
        z-index: 999999;
        box-shadow: 0 8px 16px rgba(232, 148, 120, 0.3);
        display: none;
        margin-top: 5px;
    }
}

/* ========================================
   MOBILE ONLY - 768px and below
   ======================================== */
@media (max-width: 768px) {
    /* Hide desktop dropdown */
    .live-search-dropdown-desktop {
        display: none !important;
    }
    
    /* Mobile dropdown - appears AFTER site-branding */
    .live-search-dropdown-mobile {
        position: relative;
        width: 100%;
        background: #1a1a1a;
        border: 2px solid #e89478;
        border-top: none;
        max-height: 350px;
        overflow-y: auto;
        z-index: 999999;
        box-shadow: 0 8px 16px rgba(232, 148, 120, 0.3);
        display: none;
        margin-top: 0;
    }
    
    .live-search-thumb {
        width: 70px;
        height: 39px;
    }
    
    .live-search-content h4 {
        font-size: 13px;
    }
    
    .live-search-meta span {
        font-size: 11px;
    }
    
    .live-search-item a {
        padding: 10px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .live-search-thumb {
        width: 60px;
        height: 34px;
    }
}
