/* Eternal Garden — SCAN sidebar (search + recent) */

.scan-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.scan-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.scan-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--darker-bg, #0a0a0a);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.scan-overlay.is-open .scan-sidebar {
    transform: translateX(0);
}

.scan-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.scan-sidebar-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-white);
}

.scan-sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.35rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.scan-sidebar-close:hover {
    color: var(--text-light);
}

.scan-search-wrap {
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scan-search-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.scan-search-inner:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 1px var(--primary-green);
}

.scan-search-inner i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scan-search-inner input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
}

.scan-search-inner input::placeholder {
    color: var(--text-muted);
}

.scan-search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.25rem;
    cursor: pointer;
    display: none;
}

.scan-search-clear.is-visible {
    display: block;
}

.scan-search-clear:hover {
    color: var(--text-light);
}

.scan-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem 0.5rem;
}

.scan-recent-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.scan-recent-clear {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem;
}

.scan-recent-clear:hover {
    text-decoration: underline;
}

.scan-list {
    list-style: none;
    padding: 0 0 1rem;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.scan-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.scan-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.scan-list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.scan-list-item-icon.scan-list-item-icon-hash {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1rem;
}

.scan-list-item-icon.scan-list-item-icon-search {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.scan-list-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.scan-list-item-label {
    font-family: 'Hudson', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.scan-list-item-sublabel {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.scan-list-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.35rem;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
}

.scan-list-item-remove:hover {
    color: var(--text-light);
}

.scan-results-section {
    padding: 0.5rem 0 0.75rem;
}

.scan-results-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0 1.25rem 0.5rem;
}

.scan-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
