/* #### /searchform.php ######## */
.search-form {
    position: relative;
}

#live-search-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

#live-search-wrapper.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#live-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid;
}

#live-search-count {
    font-size: 12px;
    opacity: 0.7;
}

#dark-search-list {
    max-height: 350px;
    overflow-y: auto;
    font-size: 14px;
}

.dark-live-results { 
    list-style: none; 
    margin: 0; 
    padding: 8px; 
}

.dark-live-results li { 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    margin-bottom: 4px;
    overflow: hidden;
}

.dark-live-results li:last-child { 
    margin-bottom: 0; 
}

.dark-live-results a {
    display: flex; 
    align-items: center; 
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dark-thumb { 
    width: 50px; 
    height: 50px; 
    border-radius: 8px; 
    object-fit: cover; 
    flex-shrink: 0; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.dark-title { 
    flex: 1; 
    font-size: 14px; 
    line-height: 1.4;
}

.dark-categories {
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    font-size: 12px;
    margin-top: 8px;
    padding: 0 12px 12px;
}

.dark-category {
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dark-no-results { 
    padding: 20px; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dark-no-results i {
    font-size: 24px;
    opacity: 0.5;
}

.live-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    border: none;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pagination-btn.active {
    font-weight: 700;
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    margin: 0 8px;
    font-weight: 500;
}

.dark-live-results li:hover {
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dark-live-results li:hover .dark-thumb {
    transform: scale(1.05);
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
#dark-search-list::-webkit-scrollbar {
    width: 6px;
}

#dark-search-list::-webkit-scrollbar-track {
    background: transparent;
}

#dark-search-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

@media (max-width:768px){
    .dark-live-results a { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 8px;
    }
    
    .dark-categories { 
        justify-content: flex-start; 
        padding-left: 0;
        margin-top: 4px;
    }
    
    #live-search-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .live-search-pagination {
        gap: 4px;
        padding: 8px;
    }
    
    .pagination-btn {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 32px;
    }
}
/* #### /searchform.php END ######## */

/* #### /template-parts/footer/widget.php ######## */

/* #### /template-parts/footer/widget.php END ######## */
