/* Search Modal - MoedaBR */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-out;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px);
    transition: transform 0.25s ease-out;
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

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

.search-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fafafa;
    margin: 0;
}

.search-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    color: #cfcfcf;
    transition: all 0.15s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.search-close:hover {
    background: rgba(218, 165, 32, 0.08);
    color: #DAA520;
}

.search-form {
    padding: 1.5rem;
}

.search-input-group {
    position: relative;
    display: flex;
    background: #0b0b0b;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.15s ease-out;
}

.search-input-group:focus-within {
    border-color: #DAA520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    color: #fafafa;
    outline: none;
    min-height: 60px;
}

.search-input::placeholder {
    color: #8a8a8a;
}

.search-submit {
    background: #DAA520;
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    color: #0b0b0b;
    transition: all 0.15s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-submit:hover {
    background: #B8860B;
}

.search-tags {
    padding: 0 1.5rem 1.5rem;
}

.search-tags-title {
    font-size: 0.875rem;
    color: #8a8a8a;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.search-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-tag {
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #cfcfcf;
    cursor: pointer;
    transition: all 0.15s ease-out;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.search-tag:hover {
    background: #DAA520;
    color: #0b0b0b;
    border-color: #DAA520;
}

/* Mobile */
@media (max-width: 768px) {
    .search-overlay {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .search-modal {
        max-height: 90vh;
    }
    
    .search-header {
        padding: 1rem;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .search-input {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .search-tags {
        padding: 0 1rem 1rem;
    }
}
