/**
 * Live Search Styles
 */

.boxedtheme-live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--content-bg, #fff);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    border-radius: 0 0 8px 8px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.boxedtheme-live-search-results.active {
    display: block;
}

/* List Items */
.boxedtheme-live-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.boxedtheme-live-search-results li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.boxedtheme-live-search-results li:last-child {
    border-bottom: none;
}

.boxedtheme-live-search-results a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color, #333);
    transition: background-color 0.2s;
}

.boxedtheme-live-search-results a:hover {
    background-color: var(--outer-bg, #f5f5f5);
}

/* Thumbnail */
.boxedtheme-live-search-results .search-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.boxedtheme-live-search-results .search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */
.boxedtheme-live-search-results .search-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.boxedtheme-live-search-results .search-title {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    color: inherit;
}

.boxedtheme-live-search-results .search-date {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* Footer / No Results */
.boxedtheme-search-footer,
.boxedtheme-no-results {
    padding: 12px 15px;
    text-align: center;
    background: rgba(0,0,0,0.02);
}

.boxedtheme-search-footer .view-all-results,
.boxedtheme-no-results a.button {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color, #e74c3c);
    text-decoration: none;
}

.boxedtheme-no-results p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}

/* Loading Spinner */
.boxedtheme-search-loading {
    padding: 20px;
    text-align: center;
}

.boxedtheme-search-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-color, #e74c3c);
    border-radius: 50%;
    animation: boxedtheme-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes boxedtheme-spin {
    to { transform: rotate(360deg); }
}

/* Search Form Relative Positioning */
.search-form {
    position: relative;
}
