/* Search Page Styles */

.search-header {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 0 16px;
    height: 70px;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.search-bar-container {
    position: relative;
    width: 100%;
    height: 44px;
}

#search-input {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 0 40px;
    /* Space for icons */
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

#search-input:focus {
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

.clear-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

/* Pills / Tags */
.tags-cloud {
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.history-pill {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-pill i {
    color: #888;
}

.clear-history {
    font-size: 0.8rem;
    color: var(--accent);
    cursor: pointer;
}

/* Results */
.section-label {
    font-size: 0.85rem;
    color: #888;
}

.results-list {
    display: flex;
    flex-direction: column;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    transition: background 0.2s;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.result-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.result-info {
    flex: 1;
}

.result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #eee;
    margin-bottom: 4px;
}

.result-meta {
    font-size: 0.9rem;
}

.result-arrow {
    color: #444;
}

.highlight {
    color: var(--primary);
    background: rgba(204, 253, 51, 0.1);
    padding: 0 2px;
    border-radius: 2px;
}

.no-results {
    text-align: center;
    color: #666;
    padding: 40px;
}