/* search.css - Stili per la Modale di Ricerca Globale (Cmd+K) */
.search-trigger-btn {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.search-trigger-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}
.search-key-hint {
    background: rgba(0,0,0,0.35);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.search-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.search-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.search-modal-box {
    width: 90%;
    max-width: 680px;
    background: #141412;
    border: 1px solid var(--border, rgba(212,175,55,0.2));
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.search-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, rgba(212,175,55,0.2));
    gap: 12px;
    background: #1a1a17;
}
.search-icon-main {
    color: var(--gold, #D4AF37);
    font-size: 24px;
}
#globalSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #F4F4F2;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
}
.search-close-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border, rgba(212,175,55,0.2));
    color: #8E8E8A;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.search-results-area {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
}
.search-placeholder, .search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #8E8E8A;
}
.search-placeholder .material-symbols-rounded, .search-no-results .material-symbols-rounded {
    font-size: 42px;
    color: #D4AF37;
    margin-bottom: 10px;
}
.search-suggestions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}
.search-suggestions span {
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    color: #D4AF37;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}
.search-suggestions span:hover {
    background: #D4AF37;
    color: #000;
}
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #F4F4F2;
    transition: all 0.2s ease;
}
.search-result-item:hover {
    background: rgba(212,175,55,0.08);
    border-color: #D4AF37;
    transform: translateX(4px);
}
.search-item-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #D4AF37;
    letter-spacing: 1px;
}
.search-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 2px;
}
.search-item-desc {
    font-size: 0.8rem;
    color: #8E8E8A;
    margin-top: 2px;
}
mark {
    background: rgba(212,175,55,0.3);
    color: #F3E5AB;
    padding: 0 2px;
    border-radius: 2px;
}
.search-arrow {
    font-size: 14px;
    color: #D4AF37;
}
